diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2008-02-05 01:30:35 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:44:24 -0500 |
commit | c9a3072d13e4b8a6549ecc1db6390a55c7ee2ddf (patch) | |
tree | 7b3eee2e8b71d844b27ed6a1c8d852915934e7f9 /arch/um/os-Linux/signal.c | |
parent | 4d18de45fa921600e1b3770c3a7cb106ab48cd9d (diff) |
uml: code tidying under arch/um/os-Linux
This patch contains varied fixes and improvements for some files under
arch/um/os-Linux/, such as a typo fix in a perror message, a missing
argument fix for a printf, some constifying for pointers and so on.
[ jdike - made sigprocmask failure return -errno instead of -1 ]
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/os-Linux/signal.c')
-rw-r--r-- | arch/um/os-Linux/signal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/os-Linux/signal.c b/arch/um/os-Linux/signal.c index e9800b0b5689..37302e86fda0 100644 --- a/arch/um/os-Linux/signal.c +++ b/arch/um/os-Linux/signal.c | |||
@@ -183,7 +183,8 @@ int change_sig(int signal, int on) | |||
183 | 183 | ||
184 | sigemptyset(&sigset); | 184 | sigemptyset(&sigset); |
185 | sigaddset(&sigset, signal); | 185 | sigaddset(&sigset, signal); |
186 | sigprocmask(on ? SIG_UNBLOCK : SIG_BLOCK, &sigset, &old); | 186 | if (sigprocmask(on ? SIG_UNBLOCK : SIG_BLOCK, &sigset, &old) < 0) |
187 | return -errno; | ||
187 | return !sigismember(&old, signal); | 188 | return !sigismember(&old, signal); |
188 | } | 189 | } |
189 | 190 | ||