xv6-65oo2/zombie.c
2007-08-27 23:26:33 +00:00

15 lines
215 B
C

// Create a zombie process that
// must be reparented at exit.
#include "types.h"
#include "stat.h"
#include "user.h"
int
main(void)
{
if(fork() > 0)
sleep(5); // Let child exit before parent.
exit();
}