#include #include #include #include int main(void) { pid_t pid; pid = fork(); if (pid == 0) { sleep(5); printf("I am the child.\n"); } else { printf("I will wait for my child\n"); wait(NULL); printf("I am the parent.\n"); sleep(2); } return 0; }