From: Oleg Nesterov Date: Fri, 8 Dec 2006 10:36:09 +0000 (-0800) Subject: [PATCH] sys_unshare: remove a broken CLONE_SIGHAND code X-Git-Tag: v2.6.20-rc1~34^2~394 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dae3c5a0b7052ad7dd9fa78c51ecfab828c5007b;p=pandora-kernel.git [PATCH] sys_unshare: remove a broken CLONE_SIGHAND code sys_unshare(CLONE_SIGHAND) is broken, the code under 'if (new_sigh)' is never executed but very wrong. Just remove it to avoid a confusion, task_lock() has nothing to do with ->sighand changing. Also, change the comment in unshare_sighand(). Yes, CLONE_THREAD implies CLONE_SIGHAND, but still it looks confusing. Also, we don't need to check current->sighand != NULL. Signed-off-by: Oleg Nesterov Acked-by: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed