diff options
-rw-r--r-- | include/linux/ptrace.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h index 9b5d2c901d06..800f113bea66 100644 --- a/include/linux/ptrace.h +++ b/include/linux/ptrace.h | |||
@@ -228,7 +228,11 @@ static inline void ptrace_init_task(struct task_struct *child, bool ptrace) | |||
228 | child->ptrace = current->ptrace; | 228 | child->ptrace = current->ptrace; |
229 | __ptrace_link(child, current->parent); | 229 | __ptrace_link(child, current->parent); |
230 | 230 | ||
231 | sigaddset(&child->pending.signal, SIGSTOP); | 231 | if (child->ptrace & PT_SEIZED) |
232 | task_set_jobctl_pending(child, JOBCTL_TRAP_STOP); | ||
233 | else | ||
234 | sigaddset(&child->pending.signal, SIGSTOP); | ||
235 | |||
232 | set_tsk_thread_flag(child, TIF_SIGPENDING); | 236 | set_tsk_thread_flag(child, TIF_SIGPENDING); |
233 | } | 237 | } |
234 | } | 238 | } |