diff options
author | julian <julian@FreeBSD.org> | 2007-10-26 17:03:22 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2007-10-26 17:03:22 +0000 |
commit | b6e413a6333a0c9380b66e7a620f4f87b24b1625 (patch) | |
tree | cc5c6f9096eed1a1a2555ff8e7e94448671975cf /sys/kern | |
parent | 00b0426d314829318193693a78f9f9e8af20813b (diff) | |
download | FreeBSD-src-b6e413a6333a0c9380b66e7a620f4f87b24b1625.zip FreeBSD-src-b6e413a6333a0c9380b66e7a620f4f87b24b1625.tar.gz |
kthread_exit needs no stinkin argument.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_kthread.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c index aff0fe6..cb231c8 100644 --- a/sys/kern/kern_kthread.c +++ b/sys/kern/kern_kthread.c @@ -254,7 +254,10 @@ kthread_add(void (*func)(void *), void *arg, struct proc *p, p = &proc0; oldtd = &thread0; } else { - oldtd = FIRST_THREAD_IN_PROC(p); + if (p == &proc0) + oldtd = &thread0; + else + oldtd = FIRST_THREAD_IN_PROC(p); } /* Initialize our td */ @@ -315,7 +318,7 @@ kthread_add(void (*func)(void *), void *arg, struct proc *p, } void -kthread_exit(int ecode) +kthread_exit(void) { thread_exit(); } |