Messages in this thread | | | Date | Mon, 21 Mar 2011 17:09:03 +0100 | From | Oleg Nesterov <> | Subject | Re: [PATCH 3/8] job control: Fix ptracer wait(2) hang and explain notask_error clearing |
| |
On 03/21, Oleg Nesterov wrote: > > On 03/08, Tejun Heo wrote: > > > > + if (likely(!ptrace) || (wo->wo_flags & WCONTINUED)) > > + wo->notask_error = 0; > > I don't understand this part. Suppose that this task is not traced and > its real parent does do_wait(WEXITED). We shouldn't return -ECHLD in > this case (EXIT_ZOMBIE && delay_group_leader()).
Argh. please ingnore this part. I misread the code above.
> If the task is traced and debugger does do_wait(WEXITED) we should not > return -ECHLD too.
Still true, or I missed something again...
Oleg.
| |