00001 // Create a zombie process that 00002 // must be reparented at exit. 00003 00004 #include "types.h" 00005 #include "stat.h" 00006 #include "user.h" 00007 00008 int 00009 main(void) 00010 { 00011 if(fork() > 0) 00012 sleep(5); // Let child exit before parent. 00013 exit(1); 00014 }