In Figure 13.5, the IF-THEN-ELSE structure is controlled by the value assigned to the pid, which is returned by the fork system call. A pid greater than 0 indicates a parent process, a pid equal to 0 indicates a child process, and a negative pid indicates an error in the fork call.