Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <unistd.h>
- #include <sys/types.h>
- #include <sys/wait.h>
- void NowyProces();
- int main()
- {
- printf("ID init %d\n ID User %d\n ID Group %d\n ID Parent %d\n", getpid(), getuid(), getgid(), getppid() );
- sleep(20);
- printf("SLEEP ---------------------- SLEEP", getppid(), getuid(), getgid(), getppid());
- printf("ID init %d\n ID User %d\n ID Group %d\n ID Parent %d\n", getppid(), getuid(), getgid(), getppid()) ;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement