Untitled
Anonymous
plain_text
08/06/2024 7:41 AM
1.2 KB
15
Indexable
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;
}Editor is loading...
Leave a Comment