|
@@ -1120,8 +1120,7 @@ static int wait_task_zombie(struct wait_opts *wo, struct task_struct *p)
|
|
static int *task_stopped_code(struct task_struct *p, bool ptrace)
|
|
static int *task_stopped_code(struct task_struct *p, bool ptrace)
|
|
{
|
|
{
|
|
if (ptrace) {
|
|
if (ptrace) {
|
|
- if (task_is_stopped_or_traced(p) &&
|
|
|
|
- !(p->jobctl & JOBCTL_LISTENING))
|
|
|
|
|
|
+ if (task_is_traced(p) && !(p->jobctl & JOBCTL_LISTENING))
|
|
return &p->exit_code;
|
|
return &p->exit_code;
|
|
} else {
|
|
} else {
|
|
if (p->signal->flags & SIGNAL_STOP_STOPPED)
|
|
if (p->signal->flags & SIGNAL_STOP_STOPPED)
|