// Illustrating the creation of zombies #include #include #include int main() { pid_t pid = fork(); if ( ! pid ) // Child { return ( EXIT_SUCCESS ); // Child terminates right away } // Parent does not perform a wait on child and terminates after 10 minutes sleep ( 600 ); return ( EXIT_SUCCESS ); }