diff options
author | John Baldwin <jhb@FreeBSD.org> | 2003-04-28 19:43:11 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2003-04-28 19:43:11 +0000 |
commit | 2f7ed219b2d6368bedff6ab726a76d7f1c72bbaf (patch) | |
tree | 552d25acc72b93e95bd48b3411b40a79a94b103c /sys/compat/linux/linux_signal.c | |
parent | 4b47a8153797b00878e50fe3ce25cff88558b408 (diff) | |
download | src-2f7ed219b2d6368bedff6ab726a76d7f1c72bbaf.tar.gz src-2f7ed219b2d6368bedff6ab726a76d7f1c72bbaf.zip |
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
Notes
Notes:
svn path=/head/; revision=114174
Diffstat (limited to 'sys/compat/linux/linux_signal.c')
-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 4eb92e467550..09b98a30e271 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); |