Matthew Gregan wrote:
On Thu, Jan 16, 2003 at 02:10:48PM +1300, Carl Cerecke wrote:while (zombies && !child) {fork() returns the PID of the new process in the parent, and returns 0 in the newly forked child. So the test in this while is wrong, it's causing the subsequent fork()s to be called in the child.
Doh! Should've seen that a mile away. Thanks, Carl.
