In UNIX, when a parent process disappears, I thought that all child processes reset init as their parent. Is this not correct all the time? Are there any exceptions?
New parent process when the parent process dies
process;init;exit
Moving my comment to an answer.... I don't believe there are exceptions. Found this sometimes the parent process is killed before its child is killed. In this case, the parent of all processes, init process, becomes the new PPID (parent process ID). Sometime these processes are called orphan process. sourceSimilarly is described in IBM's blog: The parent dies or gets killed before the child. In the above scenario, the child process becomes the orphan process (as it has lost its parent). In Linux, the init process comes to the rescue of the orphan processes and adopts them. This means after a child has lost its parent, the init process becomes its new parent process.