Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.