1 // Create a zombie process that 2 // must be reparented at exit. 3 4 #include "kernel/types.h" 5 #include "kernel/stat.h" 6 #include "user/user.h" 7 8 int 9 main(void) 10 { 11 if(fork() > 0) 12 sleep(5); // Let child exit before parent. 13 exit(0); 14 }