diff options
| author | Eric W. Biederman <ebiederm@xmission.com> | 2018-08-03 21:10:54 -0400 |
|---|---|---|
| committer | Eric W. Biederman <ebiederm@xmission.com> | 2018-08-03 21:10:54 -0400 |
| commit | 4390e9eadbbb6774b7ba03fde0a0fdf3f07db4cd (patch) | |
| tree | 933ab6295369efb2480129ae657711d5c3a8a64e | |
| parent | 088fe47ce952542389e604e83f533811750aaf7c (diff) | |
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 <oleg@redhat.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
| -rw-r--r-- | include/linux/ptrace.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h index 037bf0ef1ae9..4f36431c380b 100644 --- a/include/linux/ptrace.h +++ b/include/linux/ptrace.h | |||
| @@ -214,8 +214,6 @@ static inline void ptrace_init_task(struct task_struct *child, bool ptrace) | |||
| 214 | task_set_jobctl_pending(child, JOBCTL_TRAP_STOP); | 214 | task_set_jobctl_pending(child, JOBCTL_TRAP_STOP); |
| 215 | else | 215 | else |
| 216 | sigaddset(&child->pending.signal, SIGSTOP); | 216 | sigaddset(&child->pending.signal, SIGSTOP); |
| 217 | |||
| 218 | set_tsk_thread_flag(child, TIF_SIGPENDING); | ||
| 219 | } | 217 | } |
| 220 | else | 218 | else |
| 221 | child->ptracer_cred = NULL; | 219 | child->ptracer_cred = NULL; |
