#include #include #include int main(){ pid_t pid = fork(); if(pid){ // If we're the parent int child_status; wait(&child_status); printf("Child terminated with status %d, taking a nap finally\n", WEXITSTATUS(child_status)); sleep(60); } else { // If we're the child return 37; } return 0; }