From a5e1a0f2e956402fae32b621f999bc3730fe7b25 Mon Sep 17 00:00:00 2001 From: Steven Wallace Date: Wed, 27 Mar 1996 18:39:40 +0000 Subject: [PATCH] The recently introduced sv_sendsig entry of the sysentvec structure is incorrectly set to 0, for the purpose of "ignoring" the signal. This does not ignore the signal, but rather, executes the function at location 0 in kernel mode, which shortly thereafter causes a panic. The sv_sensig entry for ibcs2 emulation should be set to the system's normal sendsig routine. --- sys/i386/ibcs2/ibcs2_sysvec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/i386/ibcs2/ibcs2_sysvec.c b/sys/i386/ibcs2/ibcs2_sysvec.c index 489047321f5a..402ec19c13e9 100644 --- a/sys/i386/ibcs2/ibcs2_sysvec.c +++ b/sys/i386/ibcs2/ibcs2_sysvec.c @@ -27,11 +27,12 @@ * (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: ibcs2_sysvec.c,v 1.1 1995/10/10 07:59:11 swallace Exp $ + * $Id: ibcs2_sysvec.c,v 1.2 1996/03/02 19:37:43 peter Exp $ */ #include #include +#include #include extern int bsd_to_ibcs2_sig[]; @@ -49,7 +50,7 @@ struct sysentvec ibcs2_svr3_sysvec = { ELAST, bsd_to_ibcs2_errno, 0, /* fixup */ - 0, /* sendsig, ignore */ + sendsig, sigcode, /* use generic trampoline */ &szsigcode, /* use generic trampoline size */ 0 /* prepsyscall */