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

Commit 72a1de39 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Linus Torvalds
Browse files

copy_process(): remove the unneeded clear_tsk_thread_flag(TIF_SIGPENDING)



The forked child can have TIF_SIGPENDING if it was copied from parent's
ti->flags.  But this is harmless and actually almost never happens,
because copy_process() can't succeed if signal_pending() == T.

Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Acked-by: default avatarRoland McGrath <roland@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 77d1ef79
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1029,7 +1029,6 @@ static struct task_struct *copy_process(unsigned long clone_flags,
	p->vfork_done = NULL;
	spin_lock_init(&p->alloc_lock);

	clear_tsk_thread_flag(p, TIF_SIGPENDING);
	init_sigpending(&p->pending);

	p->utime = cputime_zero;