lkml.org 
[lkml]   [2011]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.



\
 
 \ /
  Last update: 2011-03-21 17:21    [W:0.076 / U:37.176 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site