Thread (5 messages) flat view 5 messages, 4 authors, 2015-03-14

Re: [PATCH 6/6] clone4: Introduce new CLONE_FD flag to get task exit notification via fd

From: Thiago Macieira <hidden>
Date: 2015-03-14 18:38:29
Also in: linux-fsdevel, lkml

On Saturday 14 March 2015 15:32:35 Oleg Nesterov wrote:
It is not clear to me what do_wait() should do with ->autoreap child, even
ignoring ptrace.

Just suppose that real_parent has a single "autoreap" child. Should
wait(NULL) hanf then?
It should ignore the child that is set to autoreap. wait(NULL) should return -
ECHILD, indicating there are no children waiting to be reaped.

But now I realise that this might have implications for session management and 
job control.
If yes, who will wake the parent up?

If no, I do not see the necessary changes in wait_cosnider_task().
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help