aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 20a406471525..289f59d686bf 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -1368,7 +1368,8 @@ static int wait_task_zombie(struct wait_opts *wo, struct task_struct *p)
1368static int *task_stopped_code(struct task_struct *p, bool ptrace) 1368static int *task_stopped_code(struct task_struct *p, bool ptrace)
1369{ 1369{
1370 if (ptrace) { 1370 if (ptrace) {
1371 if (task_is_stopped_or_traced(p)) 1371 if (task_is_stopped_or_traced(p) &&
1372 !(p->jobctl & JOBCTL_LISTENING))
1372 return &p->exit_code; 1373 return &p->exit_code;
1373 } else { 1374 } else {
1374 if (p->signal->flags & SIGNAL_STOP_STOPPED) 1375 if (p->signal->flags & SIGNAL_STOP_STOPPED)