summaryrefslogtreecommitdiff
path: root/kernel/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 4f22175f601b..1cf910bde58a 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -1335,14 +1335,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;
@@ -1377,6 +1378,7 @@ repeat:
goto end;
break;
}
+ flag = 1;
check_continued:
if (!unlikely(options & WCONTINUED))
continue;