#include #include #include int main(int argc, char **argv) { printf("I am the parent!\n"); pid_t pid = fork(); if (pid > 0) { printf("Child PID is %d\n", pid); wait(NULL); printf("Child terminated\n"); } else if (pid == 0) { printf("I am the child!\n"); } else { printf("Error. Fork failed\n"); } return 0; }