Messages in this thread | | | Date | Wed, 3 Feb 2010 23:31:01 +0800 | From | Américo Wang <> | Subject | Re: [PATCH] exit: PR_SET_ANCHOR for marking processes as reapers for child processes |
| |
On Tue, Feb 02, 2010 at 01:04:57PM +0100, Lennart Poettering wrote: > >This patch adds a simple flag for each process that marks it as an >"anchor" process for all its children and grandchildren. If a child of >such an anchor dies all its children will not be reparented to init, but >instead to this anchor, escaping this anchor process is not possible. A >task with this flag set hence acts is little "sub-init". >
This will break the applictions which using 'getppid() == 1' to check if its real parent is dead or not...
-- Live like a child, think like the god.
| |