Untitled
unknown
plain_text
a month ago
910 B
1
Indexable
Never
if(P6 == 0) { printf("In child process P6 with PID = %d and PPID = %d\n", getpid(), getppid()); P6 = fork(); if(P6 == 0) { printf("In child process P7 with PID = %d and PPID = %d\n", getpid(), getppid()); kill(getpid(), SIGKILL); } P6 = fork(); if(P6 == 0) { printf("In child process P9 with PID = %d and PPID = %d\n", getpid(), getppid()); } } } else if(P1 == 0) { printf("In child process P3 with PID = %d and PPID = %d\n", getpid(), getppid()); } return 0; }
Leave a Comment