Question: Create two child process C 1 and C 2 . Make sure that only C 2 becomes an orphan process. write a code in c

Create two child process C1 and C2. Make sure that only C2 becomes an orphan process.
write a code in c language .
C1 is having ID: 3639035
C2 is having ID: 3639036 and will become an orphan.
Parent is exiting, leaving C2 an orphan.
sa2395@cell06-cse:~$ C2 is now orphan with new parent ID: 1
i am getting the output like this
sa2395@cell06-cse:~$ C2 is now orphan with new parent ID: 1
its diplaying separately .
rectify this and give me the correct answer.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!