diff options
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 | ||