<defunct> processes (was Re: Trouble killing processes in SysV/AT)
Bob Lenk
rml at hpfcdc.HP.COM
Fri May 13 06:26:09 AEST 1988
> I have noticed a similar phenomenon with BSD4 - I wrote a program once that
> did lots and lots of popen("command", "w") calls. I fired it up background,
> and a minute later did a "ps ag" to see what was happening. My process was
> there, but so were about 40 processes marked STAT == Z, COMMAND == <defunct>.
Lots of folks have correctly explained that the parent must call
wait(2) or an equivalent to clean up zombies. It's important to note
that the way to do this following popen(3) is with pclose(3).
Bob Lenk
{ihnp4, hplabs}!hpfcla!rml
rml%hpfcla at hplabs.hp.com
More information about the Comp.unix.questions
mailing list