From 1fc434dc9aed71818d8d8d71e4e3897aa3536587 Mon Sep 17 00:00:00 2001 From: David Xu Date: Wed, 30 Jul 2003 23:11:37 +0000 Subject: [PATCH] Use correct signal when calling sigexit. --- sys/kern/kern_sig.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 72fbbffb9b35..611f0022646c 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1517,7 +1517,9 @@ trapsignal(struct thread *td, int sig, u_long code) mtx_unlock_spin(&sched_lock); } else { /* UTS caused a sync signal */ - sigexit(td, SIGILL); + p->p_code = code; /* XXX for core dump/debugger */ + p->p_sig = sig; /* XXX to verify code */ + sigexit(td, sig); } } else { PROC_LOCK(p);