[PATCH] cleanup __exit_signal->cleanup_sighand path
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 29 Mar 2006 00:11:27 +0000 (16:11 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 29 Mar 2006 02:36:44 +0000 (18:36 -0800)
commita7e5328a06a2beee3a2bbfaf87ce2a7bbe937de1
tree168102a80e9b98d19e8bf39156d35dacdb253c3d
parent4a2c7a7837da1b91468e50426066d988050e4d56
[PATCH] cleanup __exit_signal->cleanup_sighand path

Move 'tsk->sighand = NULL' from cleanup_sighand() to __exit_signal().  This
makes the exit path more understandable and allows us to do
cleanup_sighand() outside of ->siglock protected section.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/sched.h
kernel/exit.c
kernel/fork.c