aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ptrace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h
index fd8669fc339f..9b5d2c901d06 100644
--- a/include/linux/ptrace.h
+++ b/include/linux/ptrace.h
@@ -227,6 +227,9 @@ static inline void ptrace_init_task(struct task_struct *child, bool ptrace)
227 if (unlikely(ptrace) && current->ptrace) { 227 if (unlikely(ptrace) && current->ptrace) {
228 child->ptrace = current->ptrace; 228 child->ptrace = current->ptrace;
229 __ptrace_link(child, current->parent); 229 __ptrace_link(child, current->parent);
230
231 sigaddset(&child->pending.signal, SIGSTOP);
232 set_tsk_thread_flag(child, TIF_SIGPENDING);
230 } 233 }
231} 234}
232 235