Guest User

Untitled

a guest
May 2nd, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. How to get child PID in C?
  2. Upon successful completion, fork() returns a value of 0 to the child process and
  3. returns the process ID of the child process to the parent process. Otherwise, a
  4. value of -1 is returned to the parent process, no child process is created, and
  5. the global variable errno is set to indicate the error.
Advertisement
Add Comment
Please, Sign In to add comment