Orphan Processes
Orphan processes is kind of the opposite situation of zombie processes, since it refers to the case where a parent process terminates before its child processes, in which case these children are said to become "orphaned".
Unlike the assynchronous child-to-parent notification that happens when a child process terminates (via the SIGCHLD signal), child processes are not notified immediately when their parent finishes. Instead, the system simply redefines the "parent-pid" field in the child process's data to be the process that is the "ancestor" of every other process in the system, whose pid generally has the value 1 (one), and whose name is traditionally "init". It is thus said that "init 'adopts' every orphan process on the system".
A somewhat common assumption by programmers new to UNIX is that the child processes of a terminating process will be adopted this process's immediate parent process (hence those child processes' "grandparent"). Such assumption is incorrect—unless, of course, that "grandparent" is init itself.
Read more about this topic: Parent Process
Famous quotes containing the words orphan and/or processes:
“A man should not go where he cannot carry his whole sphere or society with him,Mnot bodily, the whole circle of his friends, but atmospherically. He should preserve in a new company the same attitude of mind and reality of relation, which his daily associates draw him to, else he is shorn of his best beams, and will be an orphan in the merriest club.”
—Ralph Waldo Emerson (18031882)
“The vast results obtained by Science are won by no mystical faculties, by no mental processes other than those which are practiced by every one of us, in the humblest and meanest affairs of life. A detective policeman discovers a burglar from the marks made by his shoe, by a mental process identical with that by which Cuvier restored the extinct animals of Montmartre from fragments of their bones.”
—Thomas Henry Huxley (182595)