Roland McGrath 7f2a525559 [PATCH] wait4 PTRACE_ATTACH race fix
Back about a year ago when I last fiddled heavily with the do_wait code, I
was thinking too hard about the wrong thing and I now think I introduced a
bug whose inverse thought I was fixing.

Apparently noone was looking too hard over much shoulder, so as to cite my
bogus reasoning at the time.  In the race condition when PTRACE_ATTACH is
about to steal a child and then the child hits a tracing event (what
my_ptrace_child checks for), the real parent does need to set its flag
noting it has some eligible live children.  Otherwise a spurious ECHILD
error is possible, since the child in question is not yet on the
ptrace_children list.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-30 17:37:24 -08:00
..
2005-10-29 21:40:38 -07:00
2005-10-28 08:16:49 -07:00
2005-10-28 08:16:49 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-10-30 17:37:24 -08:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:40 -07:00
2005-07-27 16:25:51 -07:00
2005-10-29 21:40:42 -07:00
2005-10-08 15:00:57 -07:00
2005-10-30 17:37:17 -08:00
2005-10-30 17:37:10 -08:00
2005-04-16 15:20:36 -07:00
2005-10-30 17:37:23 -08:00
2005-07-07 18:23:46 -07:00
2005-09-07 16:57:45 -07:00
2005-04-16 15:20:36 -07:00
2005-09-07 16:57:17 -07:00
2005-09-10 10:06:21 -07:00
2005-08-01 10:03:56 -07:00
2005-08-29 16:01:32 -07:00
2005-10-30 17:37:18 -08:00
2005-10-30 17:37:18 -08:00
2005-04-16 15:20:36 -07:00
2005-07-12 20:38:38 -07:00
2005-04-16 15:20:36 -07:00