Use correct signal when calling sigexit.

This commit is contained in:
David Xu 2003-07-30 23:11:37 +00:00
parent ae9fcf4c66
commit 1fc434dc9a

View File

@ -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);