watch for zombies

This commit is contained in:
rsc 2007-08-08 08:57:03 +00:00
parent e204d0a151
commit ed960d2c19

2
init.c
View file

@ -33,6 +33,6 @@ main(void)
exit(); exit();
} }
while((wpid=wait()) >= 0 && wpid != pid) while((wpid=wait()) >= 0 && wpid != pid)
; puts("zombie!\n");
} }
} }