#include #include #include int main () {pid_t pid = 0; if ((pid = fork ())> 0) Printf ("I am the Parent , My PID% U, My Child's PID =% u / n ", getPID (), PID); ELSE IF (PID == 0) Printf (" I am the child, my pid =% u, my parent's id =% U / N ", getPID (), getppid ()); else {perror (" fork "); return 1;} return 0;}