diff options
author | jhb <jhb@FreeBSD.org> | 2003-04-28 19:43:11 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-04-28 19:43:11 +0000 |
commit | bf4af0c27e24b00d86815f70bb91750add061ba1 (patch) | |
tree | 552d25acc72b93e95bd48b3411b40a79a94b103c | |
parent | 4385e958250c20da30b8024483cd80126f776083 (diff) | |
download | FreeBSD-src-bf4af0c27e24b00d86815f70bb91750add061ba1.zip FreeBSD-src-bf4af0c27e24b00d86815f70bb91750add061ba1.tar.gz |
Argh! We want to return the old signal set when the error return is zero
(i.e. success), not non-zero (failure).
Submitted by: tegge
Pointy hat to: jhb
-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); |