diff options
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 77481ca..53b3eed 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -729,6 +729,7 @@ again: p2->p_acflag = AFORK; if ((flags & RFSTOPPED) == 0) { mtx_lock_spin(&sched_lock); + p2->p_state = PRS_NORMAL; setrunqueue(td2); mtx_unlock_spin(&sched_lock); } @@ -833,7 +834,6 @@ fork_exit(callout, arg, frame) td->td_kse->ke_oncpu = PCPU_GET(cpuid); p->p_state = PRS_NORMAL; - td->td_state = TDS_RUNNING; /* Already done in switch() on 386. */ /* * Finish setting up thread glue. We need to initialize * the thread into a td_critnest=1 state. Some platforms |