CS449 - Introduction to Systems Software

The process that executes the request for creation of a process is called the
parent ... The fork function returns 0 to the child but returns the child's process ID
to the ... instructions because the code of Listing 2 did not test the return value of
fork.

Part of the document