Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!security!genrad!decvax!harpo!floyd!clyde!akgua!psuvax!burdvax!presby!seismo!hao!hplabs!sri-unix!gwyn@brl-vld From: gwyn%brl-vld@sri-unix.UUCP Newsgroups: net.unix Subject: Re: blocking on `exit' Message-ID: <14019@sri-arpa.UUCP> Date: Fri, 25-Nov-83 22:08:23 EST Article-I.D.: sri-arpa.14019 Posted: Fri Nov 25 22:08:23 1983 Date-Received: Tue, 29-Nov-83 06:16:18 EST Lines: 13 From: Doug Gwyn (VLD/VMB) A "ps" status `Z' is short for "Zombie", which is a process that has terminated but has not been wait()ed on by its parent. If the original parent terminates without waiting on children, they are "inherited" by process #1, the "init" process. "init" normally lays this type of zombie to rest. However, if the parent neither waits on the child nor terminates, the zombies remain in existence (and they occupy slots in the kernel's process table!). One way to spawn a bunch of zombies is to type a bunch of &-terminated commands to the shell with no non-& commands in between. The first "regular" program execution will cause the shell to wait on the terminated & processes and free their process slots.