diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-04-27 19:28:25 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-04-27 19:28:25 +0000 |
| commit | 6caa8a1501b8ea45c12cd4d4084d8cc15952f564 (patch) | |
| tree | 8074da6c20729157adb44320ba519849d7c67ef5 /sys/kern/kern_sig.c | |
| parent | e5878540edb74236d065b00eae99d36780a089bf (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_sig.c')
| -rw-r--r-- | sys/kern/kern_sig.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index b38723794386..c57074aa8f27 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -62,6 +62,7 @@ #include <sys/ktr.h> #include <sys/ktrace.h> #include <sys/resourcevar.h> +#include <sys/smp.h> #include <sys/stat.h> #include <sys/sx.h> #include <sys/syslog.h> @@ -70,7 +71,6 @@ #include <sys/malloc.h> #include <machine/cpu.h> -#include <machine/smp.h> #define ONSIG 32 /* NSIG for osig* syscalls. XXX. */ @@ -1301,12 +1301,11 @@ psignal(p, sig) */ if (p->p_stat == SRUN) { signotify(p); - mtx_unlock_spin(&sched_lock); #ifdef SMP forward_signal(p); #endif - } else - mtx_unlock_spin(&sched_lock); + } + mtx_unlock_spin(&sched_lock); goto out; } /*NOTREACHED*/ |
