Guest User

Untitled

a guest
Jun 23rd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include<sys/types.h>
  2. #include<stdio.h>
  3. #include<unistd.h>
  4.  
  5. int main()
  6. {
  7. pid_t pid;
  8.  
  9. pid = fork();
  10.  
  11. if (pid < 0) { /* Error! */ }
  12. else if (pid == 0) functionA();
  13. else functionB();
  14. }
Add Comment
Please, Sign In to add comment