wait3 emulation in SYSTEMV ??
Dave Lennert
davel at hpcupt1.HP.COM
Fri Feb 5 01:07:30 AEST 1988
> However, looking some more into the code, one finds that the
> process group of a zombi process is set to 0 (surprise?!).
> Which leads me to the conclusion that if a processes indead
> calls setprgp() you can test its state by
>
> kill (-childpid, 0)
>
> provided that the process did not create some children
> which did not call setpgrp().
You assume that the zombie process of interest was formerly a
process group leader (process group ID == process ID). This
is not necessarily the case. You are probably thinking that,
csh's that support BSD-style job control, the first command in
a pipeline is always made a process group leader. This is not
true on shells that do not do this style of job control, and
thus is not true on System V (at least not yet).
-Dave Lennert HP ihnp4!hplabs!hpda!davel
More information about the Comp.unix.questions
mailing list