Re: eligible_child() && __WCLONE && task_detached() (Was: mmotm 2009-08-24-16-24 uploaded)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Roland McGrath
Date: Friday, August 28, 2009 - 12:16 pm

> eligible_child:

As you say, you're not even supposed to be here when exit_signal = -1,
except for the ptrace case.  This logic exists for the non-CLONE_THREAD
clone case, i.e. ->exit_signal != SIGCHLD and != -1.


That seems OK to me.


That's all still possible, it's just no longer common.
i.e. clone(SIGUSR1|CLONE_VM, ...) or whatnot (no CLONE_THREAD).


I suspect not, but I'm not quite sure.  That is, it makes sense to me that
a ptracer should always get its tracees in all waits.  That is consistent
with not having to use WUNTRACED, for example.  But I'm not really sure any
more what the historical behavior of this has been.  The code in GDB uses
__WALL and __WCLONE in various places, clearly assuming that just ptrace
alone is not enough for every wait4 call to catch every tracee.  It seems
likely that this method was necessary in the past and that's why the code
is like that.


Thanks,
Roland
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
mmotm 2009-08-24-16-24 uploaded, akpm, (Mon Aug 24, 4:28 pm)
Re: mmotm 2009-08-24-16-24 uploaded, KAMEZAWA Hiroyuki, (Tue Aug 25, 3:02 am)
Re: mmotm 2009-08-24-16-24 uploaded, KAMEZAWA Hiroyuki, (Tue Aug 25, 8:15 pm)
Re: mmotm 2009-08-24-16-24 uploaded, Andrew Morton, (Tue Aug 25, 8:36 pm)
Re: mmotm 2009-08-24-16-24 uploaded, KAMEZAWA Hiroyuki, (Tue Aug 25, 8:44 pm)
Re: mmotm 2009-08-24-16-24 uploaded, Amerigo Wang, (Tue Aug 25, 9:52 pm)
Re: mmotm 2009-08-24-16-24 uploaded, KAMEZAWA Hiroyuki, (Tue Aug 25, 11:54 pm)
Re: mmotm 2009-08-24-16-24 uploaded, KAMEZAWA Hiroyuki, (Wed Aug 26, 10:44 pm)
Re: mmotm 2009-08-24-16-24 uploaded, Hiroshi Shimamoto, (Wed Aug 26, 11:17 pm)
Re: mmotm 2009-08-24-16-24 uploaded, KAMEZAWA Hiroyuki, (Wed Aug 26, 11:31 pm)
Re: mmotm 2009-08-24-16-24 uploaded, KAMEZAWA Hiroyuki, (Thu Aug 27, 12:05 am)
Re: mmotm 2009-08-24-16-24 uploaded, Oleg Nesterov, (Thu Aug 27, 2:34 am)
Re: mmotm 2009-08-24-16-24 uploaded, KAMEZAWA Hiroyuki, (Thu Aug 27, 2:37 am)
Re: mmotm 2009-08-24-16-24 uploaded, KAMEZAWA Hiroyuki, (Thu Aug 27, 2:43 am)
Re: mmotm 2009-08-24-16-24 uploaded, Oleg Nesterov, (Thu Aug 27, 3:08 am)
Re: mmotm 2009-08-24-16-24 uploaded, KAMEZAWA Hiroyuki, (Thu Aug 27, 3:17 am)
Re: mmotm 2009-08-24-16-24 uploaded, KAMEZAWA Hiroyuki, (Thu Aug 27, 3:31 am)
Re: mmotm 2009-08-24-16-24 uploaded, Oleg Nesterov, (Thu Aug 27, 3:52 am)
Re: eligible_child() && __WCLONE && task_detached() (Was: ..., Roland McGrath, (Fri Aug 28, 12:16 pm)