diff options
author | swallace <swallace@FreeBSD.org> | 1995-10-19 19:20:17 +0000 |
---|---|---|
committer | swallace <swallace@FreeBSD.org> | 1995-10-19 19:20:17 +0000 |
commit | 971c8493473f9bdd7eaa3c56d955a68364d783f1 (patch) | |
tree | 23172cc7f575f4797c2bf21e3b8aa1954def16b8 /sys/i386/ibcs2 | |
parent | f62e0784cbb72e1ab182e5a684c0299c11695bfd (diff) | |
download | FreeBSD-src-971c8493473f9bdd7eaa3c56d955a68364d783f1.zip FreeBSD-src-971c8493473f9bdd7eaa3c56d955a68364d783f1.tar.gz |
Use sa_flag option SA_NODEFER in sigsys() emulation because SVR3
does not automatically mask signal upon delivery.
Diffstat (limited to 'sys/i386/ibcs2')
-rw-r--r-- | sys/i386/ibcs2/ibcs2_signal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/ibcs2/ibcs2_signal.c b/sys/i386/ibcs2/ibcs2_signal.c index 2170b9c..9e8cce3 100644 --- a/sys/i386/ibcs2/ibcs2_signal.c +++ b/sys/i386/ibcs2/ibcs2_signal.c @@ -1,5 +1,3 @@ -/* $NetBSD: ibcs2_signal.c,v 1.6 1995/09/19 22:19:07 thorpej Exp $ */ - /* * Copyright (c) 1995 Scott Bartram * All rights reserved. @@ -25,6 +23,8 @@ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * $Id$ */ #include <sys/param.h> @@ -174,7 +174,7 @@ ibcs2_to_bsd_sigaction(isa, bsa) bsa->sa_handler = isa->sa_handler; ibcs2_to_bsd_sigset(&isa->sa_mask, &bsa->sa_mask); - bsa->sa_flags = 0; + bsa->sa_flags = 0; /* ??? SA_NODEFER */ if ((isa->sa_flags & IBCS2_SA_NOCLDSTOP) != 0) bsa->sa_flags |= SA_NOCLDSTOP; } @@ -291,10 +291,10 @@ ibcs2_sigsys(p, uap, retval) sa.sa_handler = SCARG(uap, fp); sigemptyset(&sa.sa_mask); - sa.sa_flags = 0; + sa.sa_flags = SA_NODEFER; #if 0 if (signum != SIGALRM) - sa.sa_flags = SA_RESTART; + sa.sa_flags |= SA_RESTART; #endif if ((error = copyout(&sa, nbsa, sizeof(sa))) != 0) return error; |