| |
| | [No title] |
 | | As such, it continues with a copy of the parent’s code, variables, open file descriptors, attached shared memory segments, semaphores, etc. Upon successful completion, fork() returns a value of 0 to the child process and returns the process ID of the child process to the parent process. |
 | | Otherwise, a value of -1 is returned to the parent process, no child process is created, and errno is set to indicate the error. |
 | | The parent and child processes resume execution (are rescheduled) immediately after the fork() call; they are distinguished by the value returned by fork. |
| www.cs.usu.edu /~scott/5200_f02/fork.doc (348 words) |
|