diff options
Diffstat (limited to 'sys/kern/kern_thr.c')
-rw-r--r-- | sys/kern/kern_thr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 3d410b5..61d9a88 100644 --- a/sys/kern/kern_thr.c +++ b/sys/kern/kern_thr.c @@ -235,6 +235,8 @@ create_thread(struct thread *td, mcontext_t *ctx, /* let the scheduler know about these things. */ sched_fork_thread(td, newtd); thread_unlock(td); + if (P_SHOULDSTOP(p)) + newtd->td_flags |= TDF_ASTPENDING | TDF_NEEDSUSPCHK; PROC_UNLOCK(p); thread_lock(newtd); if (rtp != NULL) { |