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 ccafbbc..1100f4a 100644 --- a/sys/kern/kern_sched.c +++ b/sys/kern/kern_sched.c @@ -230,7 +230,7 @@ sched_new_td(uintptr_t ip, bool is_user, struct exec_args args, struct vm_range } /* Setup initial thread state */ - td->pid = nthread++; + td->pid = ++nthread; td->tf = tf; td->addrsp = args.vas; td->is_user = is_user; |