Messages in this thread | | | Date | Sun, 03 Apr 2011 02:00:14 +0400 | From | Stas Sergeev <> | Subject | Re: [path][rfc] add PR_DETACH prctl command |
| |
02.04.2011 17:55, Oleg Nesterov wrote: > >>>> + if (me->real_parent == init_pid_ns.child_reaper) >>> Also, the task can be the child of /sbin/init's sub-thread. >> Hmm, how to check then? Should I add the "exact_parent" just >> for that? Or traverse the sibling list? How bad. :( > You can check same_thread_group(real_parent, ns->child_reaper) But real_parent==ns->child_reaper in our case, so what does this check give?
> acked, I'd try to nack this;) do_wait() from parent should > always work or it should always return ECHLD, but it should > not depend on /dev/random. This is really weird, imho. OK, this can be fixed by delaying the wait() from init till the old parent wait()s or die. Will fix.
| |