Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <unistd.h>
  3. #include <sys/types.h>
  4. #include <sys/wait.h>
  5.  
  6. void NowyProces();
  7.  
  8. int main()
  9. {
  10. printf("ID init %d\n ID User %d\n ID Group %d\n ID Parent %d\n", getpid(), getuid(), getgid(), getppid() );
  11.  
  12. sleep(20);
  13.  
  14. printf("SLEEP ---------------------- SLEEP", getppid(), getuid(), getgid(), getppid());
  15. printf("ID init %d\n ID User %d\n ID Group %d\n ID Parent %d\n", getppid(), getuid(), getgid(), getppid()) ;
  16.  
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement