MCQ Practice
In this program #include #include #include int main() { pid_t child; child=fork(); switch(child){ case -1 : perror("fork"); exit(1); case 0 : while(1){ printf("Child Processn"); sleep(1); } break; default : sleep(5); kill(child,SIGINT); printf("The child process has been killed by the parent processn"); break; } return 0; }
Subject: Computer Science EngineeringTopic: Linux
Correct Answer: B