Re: waitpid(WNOHANG) should report SIGCHLD-notified signals [Re:[PATCH 09/11] job control: reorganize wait_task_stopped()]

From: Tejun Heo
Date: Mon May 16 2011 - 08:46:34 EST


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.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at