diff options
Diffstat (limited to 'sys/kern/kern_sched.c')
-rw-r--r-- | sys/kern/kern_sched.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/kern_sched.c b/sys/kern/kern_sched.c index afaf6a8..877c55d 100644 --- a/sys/kern/kern_sched.c +++ b/sys/kern/kern_sched.c @@ -38,6 +38,7 @@ #include <sys/panic.h> #include <sys/machdep.h> #include <sys/filedesc.h> +#include <sys/signal.h> #include <fs/initramfs.h> #include <vm/dynalloc.h> #include <vm/physseg.h> @@ -353,6 +354,10 @@ sched_context_switch(struct trapframe *tf) struct sched_state *state = &ci->sched_state; struct proc *td, *next_td; + if (state->td != NULL) { + signal_handle(state->td); + } + /* * If we have no threads, we should not * preempt at all. |