pid's of processes which open a pipe (or fd descpition)
Hello.
I have a problem with identification of process, which open pipe with
other one. for exaple i run
# ./a | tee > /tmp/a
and i see
# ls -al /proc/<pid_of_tee>/fd/
dr-x2 antonyother8208 Feb 26 16:21 .
dr-x--x--x5 antonyother864 Feb 26 16:21 ..
p0 antonyother 0 Feb 26 16:34 0
--w-1 antonyother160 Feb 26 16:34 1
c1 antonytty24, 2 Feb 26 16:21 2
Ok. I see that 0 stream is a pipe. But how can i detect with with process
this pipe is opened?
In Linux, for example, with the same example i have:
dr-x 2 antony antony 0 2006-02-26 16:24 ./
dr-xr-xr-x 4 antony antony 0 2006-02-26 16:24 ../
lr-x 1 antony antony 64 2006-02-26 16:24 0 -> pipe:[26606]
l-wx 1 antony antony 64 2006-02-26 16:24 1 -> /tmp/a
lrwx 1 antony antony 64 2006-02-26 16:24 2 -> /dev/pts/4
Ofcouse more detailed output but what 26606 mean?
And what about other fd's? Ok, in Linux its a symbolic link to file and
what about solaris? What format of this file and where it is described?

