[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1244116255.4120.33.camel@quest>
Date: Thu, 04 Jun 2009 12:50:55 +0100
From: Scott James Remnant <scott@...onical.com>
To: Lennart Poettering <lennart@...ttering.net>
Cc: linux-kernel@...r.kernel.org, Kay Sievers <kay.sievers@...y.org>
Subject: Re: [PATCH/RFC] exit: PR_SET_ANCHOR for marking processes as
reapers for child processes
On Thu, 2009-05-28 at 22:47 +0200, Lennart Poettering wrote:
> Right now, if a process dies all its children are reparented to init.
> This logic has good uses, i.e. for double forking when
> daemonizing. However it also allows child processes to "escape" their
> parents, which is a problem for software like session managers (such
> as gnome-session) or other process supervisors [1].
>
As we discussed on IRC, another option is for the session
manager/process supervisor to use the proc connector to receive messages
about fork() and exit() - then it doesn't need to receive SIGCHLD, so it
doesn't matter where the process reparents to.
OTOH, this patch would make the process trees much prettier <g>
Scott
--
Scott James Remnant
scott@...onical.com
Download attachment "signature.asc" of type "application/pgp-signature" (198 bytes)
Powered by blists - more mailing lists