Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site daab.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!mcvax!enea!daab!lasse From: lasse@daab.UUCP (Lars Hammarstrand) Newsgroups: net.unix-wizards,net.unix Subject: Re: UNIX question Message-ID: <179@daab.UUCP> Date: Tue, 10-Dec-85 09:43:51 EST Article-I.D.: daab.179 Posted: Tue Dec 10 09:43:51 1985 Date-Received: Fri, 13-Dec-85 08:47:47 EST References: <156@uw-june> Reply-To: lasse@daab.UUCP (Lars Hammarstrand) Organization: Datorisering AB, Stockholm, Sweden Lines: 17 Xref: watmath net.unix-wizards:16081 net.unix:6613 >I have a C program which, during the course of its execution, spawns(forks) >child processes ..... > >... do a 'ps', the child processes show up in the list with a 'Z' status. > >.. of you probably already know, these useless ex-processes can't even >be completely gotten rid of with a 'kill' command..... If you don't want your children to end up as (Z)ombie processes, the parent process have to execute a wait(2) on each child that have been killed or stoped. See also: signal(2) and kill(2). Lars Hammarstrand.