Thread (3 messages) 3 messages, 2 authors, 2015-06-15

Re: [PATCH v2 0/7] CLONE_FD: Task exit notification via file descriptor

From: Florian Weimer <hidden>
Date: 2015-05-29 07:43:35
Also in: linux-fsdevel, lkml

On 03/15/2015 08:59 AM, Josh Triplett wrote:
This patch series introduces a new clone flag, CLONE_FD, which lets the caller
receive child process exit notification via a file descriptor rather than
SIGCHLD.  CLONE_FD makes it possible for libraries to safely launch and manage
child processes on behalf of their caller, *without* taking over process-wide
SIGCHLD handling (either via signal handler or signalfd).

Note that signalfd for SIGCHLD does not suffice here, because that still
receives notification for all child processes, and interferes with process-wide
signal handling.
It has been suggested (e.g.,
<https://sourceware.org/bugzilla/show_bug.cgi?id=15661#c3>) that you can
use the existing clone(2) without specifying SIGCHLD to create a new
process.  The resulting child process is not supposed to show up in
wait(2), only in a waitpid(2) (or similar) explicitly specifying the
PID.  Is this not the case?

-- 
Florian Weimer / Red Hat Product Security
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help