diff options
-rw-r--r-- | sys/kern/kern_sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_sched.c b/sys/kern/kern_sched.c index 1fca89d..d0cd100 100644 --- a/sys/kern/kern_sched.c +++ b/sys/kern/kern_sched.c @@ -103,7 +103,7 @@ sched_enqueue_td(struct proc *td) spinlock_acquire(&tdq_lock); - td->pid = nthread++; + td->pid = ++nthread; TAILQ_INSERT_TAIL(&td_queue, td, link); spinlock_release(&tdq_lock); |