UNIX question

Lars Hammarstrand lasse at daab.UUCP
Wed Dec 11 00:43:51 AEST 1985


>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.



More information about the Comp.unix.wizards mailing list