Commit 762cc267 authored by Daniel Jacobowitz's avatar Daniel Jacobowitz

Use force_sig_specific to send SIGSTOP to newly-created CLONE_PTRACE processes.

parent 1669ce53
...@@ -1036,7 +1036,7 @@ struct task_struct *do_fork(unsigned long clone_flags, ...@@ -1036,7 +1036,7 @@ struct task_struct *do_fork(unsigned long clone_flags,
} }
if (p->ptrace & PT_PTRACED) if (p->ptrace & PT_PTRACED)
send_sig(SIGSTOP, p, 1); force_sig_specific(SIGSTOP, p);
wake_up_forked_process(p); /* do this last */ wake_up_forked_process(p); /* do this last */
++total_forks; ++total_forks;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment