Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4390e9ea authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

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: default avatarOleg Nesterov <oleg@redhat.com>
Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 088fe47c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -214,8 +214,6 @@ static inline void ptrace_init_task(struct task_struct *child, bool ptrace)
			task_set_jobctl_pending(child, JOBCTL_TRAP_STOP);
		else
			sigaddset(&child->pending.signal, SIGSTOP);

		set_tsk_thread_flag(child, TIF_SIGPENDING);
	}
	else
		child->ptracer_cred = NULL;