#include #include #include #include "utils.h" int main(int argc, char *argv[]) { int status = 0; switch(fork()) { case -1: exit_if(1, "fork"); case 0: printf("let's die %d\n", getpid()); return 3; default: printf("There is now a zombie\n"); sleep(30); wait(&status); printf("no more zombie since I know : %d\n", status); } return 0; }