diff options
| author | Juli Mallett <jmallett@FreeBSD.org> | 2002-09-30 20:20:22 +0000 |
|---|---|---|
| committer | Juli Mallett <jmallett@FreeBSD.org> | 2002-09-30 20:20:22 +0000 |
| commit | 1226f694e66c1af1593fa0fc5f30e72932266b3b (patch) | |
| tree | 44cc85d6d7a465b4410e0fa06f9f5a1b21bc40b6 /sys/kern/subr_trap.c | |
| parent | 655a5ce411fb58451d9b37574837807c4824e6e9 (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_trap.c')
| -rw-r--r-- | sys/kern/subr_trap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index f12014163b53..0a165e9ee1bb 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -54,6 +54,8 @@ #include <sys/signalvar.h> #include <sys/systm.h> #include <sys/vmmeter.h> +#include <sys/malloc.h> +#include <sys/ksiginfo.h> #include <machine/cpu.h> #include <machine/pcb.h> @@ -80,7 +82,7 @@ userret(td, frame, oticks) mtx_lock(&Giant); PROC_LOCK(p); mtx_lock_spin(&sched_lock); - if (SIGPENDING(p) && ((p->p_sflag & PS_NEEDSIGCHK) == 0 || + if (signal_pending(p) && ((p->p_sflag & PS_NEEDSIGCHK) == 0 || (td->td_kse->ke_flags & KEF_ASTPENDING) == 0)) printf("failed to set signal flags properly for ast()\n"); mtx_unlock_spin(&sched_lock); |
