Skip to content

Commit 4390e9e

Browse files
committed
fork: Skip setting TIF_SIGPENDING in ptrace_init_task
The code in calculate_sigpending will now handle this so it is just redundant and possibly a little confusing to continue setting TIF_SIGPENDING in ptrace_init_task. Suggested-by: Oleg Nesterov <[email protected]> Signed-off-by: "Eric W. Biederman" <[email protected]>
1 parent 088fe47 commit 4390e9e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/linux/ptrace.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,6 @@ static inline void ptrace_init_task(struct task_struct *child, bool ptrace)
214214
task_set_jobctl_pending(child, JOBCTL_TRAP_STOP);
215215
else
216216
sigaddset(&child->pending.signal, SIGSTOP);
217-
218-
set_tsk_thread_flag(child, TIF_SIGPENDING);
219217
}
220218
else
221219
child->ptracer_cred = NULL;

0 commit comments

Comments
 (0)