From 7327d007eb2ac22e85965fd25425060c4f4aea63 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 15 Sep 1997 03:01:50 +0000 Subject: Fix bsd_to_*_sigaction(). Also add SA_SIGINFO support --- sys/compat/svr4/svr4_signal.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'sys/compat/svr4') diff --git a/sys/compat/svr4/svr4_signal.c b/sys/compat/svr4/svr4_signal.c index f635dc1ad6b..7d51f5610ce 100644 --- a/sys/compat/svr4/svr4_signal.c +++ b/sys/compat/svr4/svr4_signal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_signal.c,v 1.6 1997/06/02 09:42:15 deraadt Exp $ */ +/* $OpenBSD: svr4_signal.c,v 1.7 1997/09/15 03:01:49 deraadt Exp $ */ /* $NetBSD: svr4_signal.c,v 1.24 1996/12/06 03:21:53 christos Exp $ */ /* @@ -202,6 +202,8 @@ svr4_to_bsd_sigaction(ssa, bsa) bsa->sa_flags |= SA_NOCLDSTOP; if ((ssa->sa_flags & SVR4_SA_NODEFER) != 0) bsa->sa_flags |= SA_NODEFER; + if ((ssa->sa_flags & SVR4_SA_SIGINFO) != 0) + bsa->sa_flags |= SA_SIGINFO; } void @@ -214,15 +216,17 @@ bsd_to_svr4_sigaction(bsa, ssa) bsd_to_svr4_sigset(&bsa->sa_mask, &ssa->sa_mask); ssa->sa_flags = 0; if ((bsa->sa_flags & SA_ONSTACK) != 0) - ssa->sa_flags |= SA_ONSTACK; + ssa->sa_flags |= SVR4_SA_ONSTACK; if ((bsa->sa_flags & SA_RESETHAND) != 0) - ssa->sa_flags |= SA_RESETHAND; + ssa->sa_flags |= SVR4_SA_RESETHAND; if ((bsa->sa_flags & SA_RESTART) != 0) - ssa->sa_flags |= SA_RESTART; + ssa->sa_flags |= SVR4_SA_RESTART; if ((bsa->sa_flags & SA_NODEFER) != 0) - ssa->sa_flags |= SA_NODEFER; + ssa->sa_flags |= SVR4_SA_NODEFER; if ((bsa->sa_flags & SA_NOCLDSTOP) != 0) - ssa->sa_flags |= SA_NOCLDSTOP; + ssa->sa_flags |= SVR4_SA_NOCLDSTOP; + if ((bsa->sa_flags & SA_SIGINFO) != 0) + ssa->sa_flags |= SVR4_SA_SIGINFO; } void -- cgit v1.2.3