examined using the macros described in waitpid (2). (i.e., WIFEXITED (), WEXITSTATUS (), and so on). system ... calling fork (2), execl (3), and waitpid (2), as well as the necessa…child until it terminates. */ do { s = waitpid(child_pid, &status, WUNTRACED | WCONTINUED ... errExit("waitpid"); printf("Child status: "); if (WIFEXITED(status)) { printf("exited,…child until it terminates. */ do { s = waitpid(child_pid, &status, WUNTRACED | WCONTINUED ... errExit("waitpid"); printf("Child status: "); if (WIFEXITED(status)) { printf("exited,…processes). There is no pthreads analog of waitpid(-1, &status, 0) , that is, "join withThis allows the parent to subsequently use waitpid (2) (or similar) to learn the termination