Linux Process Management(18) > 2. Call unhash_process() to remove the process from the > pidhash and remove the process from the task list. > 3. If the task was ptraced, reparent it to its original > parent and remove it from the ptrace list. > 4. Call put_task_struct() to free the pages containing > the process's kernel stack and thread_info structure > and deallocate the slab cache containing the > task_struct. > 14. P.28 The Dilemma of the Parentless Task > 1. http://www.qnx.com/developers/docs/qnx_4.25_docs/qnx4/sysarch/proc.html > > 2. The solution, hinted upon previously, is to reparent a > task's children on exit to either another process in the > current thread group or, if that fails, the init process. > > 1. Commands for Process > Command Description