1.

What is the PID of the process who takes the parentage of the process run with nohup command?(a) 0(b) 1(c) 2(d) InfiniteThe question was asked in unit test.I would like to ask this question from Process Handling Commands in section The Process of Unix

Answer»

Right answer is (B) 1

To explain I would SAY: The shell dies on logging out but it’s child didn’t. The KERNEL handles such situations by reassigning the PPID of the orphan PROCESS to the SYSTEM’s init process (PID 1), which is the parent of all shells.



Discussion

No Comment Found

Related InterviewSolutions