[LCP]Fork freezes when forking more then one
ice at mama.indstate.edu
Wed Aug 27 07:48:02 UTC 2003
juman <juman at chello.se> wrote:
> Great... now I also see the problem and learned to use a new tool for me
> (strace) but I am not sure how you used the /proc to see the
> information. Could explain a bit more how you see the used descriptors
> using /proc?
Very simply, since the jobs were stopped waiting on input, it was an easy
matter to cd to /proc/<pid>/fd and do an 'ls -l' and see what open file
handles they had, each for the parent and two children. I saw that the second
child had additional pipes in common with the first child and it became fairly
obvious what had happened.
More information about the linuxCprogramming