diff -Naurp linux-2.6.10-rc1.orig/kernel/exit.c linux-2.6.10-rc1/kernel/exit.c --- linux-2.6.10-rc1.orig/kernel/exit.c 2004-10-23 03:10:06.000000000 +0530 +++ linux-2.6.10-rc1/kernel/exit.c 2004-11-10 17:18:20.818103584 +0530 @@ -1325,14 +1325,15 @@ repeat: ret = eligible_child(pid, options, p); if (!ret) continue; - flag = 1; switch (p->state) { case TASK_TRACED: + flag = 1; if (!my_ptrace_child(p)) continue; /*FALLTHROUGH*/ case TASK_STOPPED: + flag = 1; if (!(options & WUNTRACED) && !my_ptrace_child(p)) continue; @@ -1365,6 +1366,7 @@ repeat: goto end; break; } + flag = 1; check_continued: if (!unlikely(options & WCONTINUED)) continue;