From: Matt Fleming Date: Mon, 5 Mar 2012 23:05:34 +0000 (-0800) Subject: ARM: use set_current_blocked() and block_sigmask() X-Git-Tag: v3.4-rc1~36^2~1^3~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=101d9b0dedbc9e560737d3357104bf09db48eb3e;p=pandora-kernel.git ARM: use set_current_blocked() and block_sigmask() As described in e6fa16ab ("signal: sigprocmask() should do retarget_shared_pending()") the modification of current->blocked is incorrect as we need to check for shared signals we're about to block. Also, use the new helper function introduced in commit 5e6292c0f28f ("signal: add block_sigmask() for adding sigmask to current->blocked") which centralises the code for updating current->blocked after successfully delivering a signal and reduces the amount of duplicate code across architectures. In the past some architectures got this code wrong, so using this helper function should stop that from happening again. Cc: Arnd Bergmann Cc: Dave Martin Cc: Nicolas Pitre Cc: Will Deacon Acked-by: Oleg Nesterov Signed-off-by: Matt Fleming Signed-off-by: Andrew Morton Signed-off-by: Russell King --- Reading git-diff-tree failed