[lkml]   [2011]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: waitpid(WNOHANG) should report SIGCHLD-notified signals [Re: [PATCH 09/11] job control: reorganize wait_task_stopped()]

On Mon, May 16, 2011 at 02:39:30PM +0200, Jan Kratochvil wrote:
> > The above wouldn't be linux kernel's top design concerns, right?
> They are - as without threads one needs reliable WNOHANG - while which you say
> it is not reliable.

As I wrote before, I think it's reliable for ptrace. The problematic
ones are transitions between continued and stopped and running and I
don't think it would affect ptrace.

> > It's not like new interface is gonna break that, but I think it's gonna be
> > more fragile. Well, it shouldn't be worse than now.
> BTW I really do not think this WNOHANG issue is anyhow related to this whole
> discussion.

Probably not but I've seen gdb going out of sync with the expected
state of the tracee. Dunno whether it was kernel bug or gdb bug but
it seemed pretty fragile and adding group stop notifications might
make it a bit more difficult. I don't know. It was just my five
cents. Feel free to ignore.



 \ /
  Last update: 2011-05-16 14:49    [W:0.062 / U:15.920 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site