aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorZhaolei <zhaolei@cn.fujitsu.com>2009-01-06 17:40:46 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-06 18:59:11 -0500
commit60348802e9cb137ee86590c3e4c57c1ec2e8fc69 (patch)
tree0c8fb3de7410898643f992081650a307f17dea28 /kernel/fork.c
parentf1883f86dea84fe47a71a39fc1afccc005915ed8 (diff)
fork.c: cleanup for copy_sighand()
Check CLONE_SIGHAND only is enough, because combination of CLONE_THREAD and CLONE_SIGHAND is already done in copy_process(). Impact: cleanup, no functionality changed Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Cc: Roland McGrath <roland@redhat.com> Cc: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 43cbf30669e6..23b912116675 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -758,7 +758,7 @@ static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk)
758{ 758{
759 struct sighand_struct *sig; 759 struct sighand_struct *sig;
760 760
761 if (clone_flags & (CLONE_SIGHAND | CLONE_THREAD)) { 761 if (clone_flags & CLONE_SIGHAND) {
762 atomic_inc(&current->sighand->count); 762 atomic_inc(&current->sighand->count);
763 return 0; 763 return 0;
764 } 764 }