From: Oleg Nesterov Date: Wed, 17 Oct 2007 06:27:22 +0000 (-0700) Subject: exec: simplify the new ->sighand allocation X-Git-Tag: v2.6.24-rc1~674 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2c903b8790467ae400f6992ac01bc8913b49e19;p=pandora-kernel.git exec: simplify the new ->sighand allocation de_thread() pre-allocates newsighand to make sure that exec() can't fail after killing all sub-threads. Imho, this buys nothing, but complicates the code: - this is (mostly) needed to handle CLONE_SIGHAND without CLONE_THREAD tasks, this is very unlikely (if ever used) case - unless we already have some serious problems, GFP_KERNEL allocation should not fail - ENOMEM still can happen after de_thread(), ->sighand is not the last object we have to allocate Change the code to allocate the new ->sighand on demand. Signed-off-by: Oleg Nesterov Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed