diff options
| author | Andrew Gallatin <gallatin@FreeBSD.org> | 2002-07-03 02:55:48 +0000 |
|---|---|---|
| committer | Andrew Gallatin <gallatin@FreeBSD.org> | 2002-07-03 02:55:48 +0000 |
| commit | 0ac3b6364f17cc174a636dd02e2e5a20ff1f6ac0 (patch) | |
| tree | 53da20642f7c9c5e2958cbdb5f051c1cac591047 /sys/kern/kern_sig.c | |
| parent | b61860ad2d6663f11d80a2abac94d99af6fadb9d (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_sig.c')
| -rw-r--r-- | sys/kern/kern_sig.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index e8ded210c749..8632f2373ba9 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1543,8 +1543,11 @@ tdsignal(struct thread *td, int sig, sig_t action) td->td_state == TDS_RUNNING) { signotify(td->td_proc); #ifdef SMP - if (td->td_state == TDS_RUNNING && td != curthread) + if (td->td_state == TDS_RUNNING && td != curthread) { + mtx_lock_spin(&sched_lock); forward_signal(td); + mtx_unlock_spin(&sched_lock); + } #endif } goto out; |
