diff options
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 e8ded21..8632f23 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; |