Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!husc6!think!ames!ucsd!ucsdhub!hp-sdd!hplabs!hpl-opus!hpccc!hp-sde!hpfcdc!rml From: rml@hpfcdc.HP.COM (Bob Lenk) Newsgroups: comp.unix.questions Subject: Re: processes (was Re: Trouble killing processes in SysV/AT) Message-ID: <5740021@hpfcdc.HP.COM> Date: 12 May 88 20:26:09 GMT References: <77@lakart.UUCP> Organization: HP Ft. Collins, Co. Lines: 12 > 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 == . 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@hplabs.hp.com