diff options
-rw-r--r-- | sys/compat/linux/linux_signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_signal.c b/sys/compat/linux/linux_signal.c index 4eb92e4..09b98a3 100644 --- a/sys/compat/linux/linux_signal.c +++ b/sys/compat/linux/linux_signal.c @@ -252,7 +252,7 @@ linux_do_sigprocmask(struct thread *td, int how, l_sigset_t *new, } else nmaskp = NULL; error = kern_sigprocmask(td, how, nmaskp, &omask, 0); - if (error != 0 && old != NULL) + if (error == 0 && old != NULL) bsd_to_linux_sigset(&omask, old); return (error); |