From: Oleg Nesterov Date: Wed, 17 Jun 2009 23:27:37 +0000 (-0700) Subject: copy_process(): remove the unneeded clear_tsk_thread_flag(TIF_SIGPENDING) X-Git-Tag: v2.6.31-rc1~212 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72a1de39f89325a834a8c70b2a0d8f71d919f640;p=platform%2Fkernel%2Flinux-3.10.git 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: Oleg Nesterov Acked-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/fork.c b/kernel/fork.c index be022c2..467746b 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -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;