Guest User

Untitled

a guest
Jul 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <unistd.h>
  4.  
  5. int main(int argc, char** argv){
  6. fork();
  7. /* The function getpid() returns the PID of the current process */
  8. fprintf(stdout, "I'm a process, my PID is: %d", getpid());
  9.  
  10. return EXIT_SUCCESS;
  11. }
Add Comment
Please, Sign In to add comment