diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2007-06-07 19:45:19 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2007-06-07 19:45:19 +0000 |
| commit | a66fde8d35931c0e32ac294a1a2c1bf6b877425f (patch) | |
| tree | 7a56af44eb40012604dc8a767ad59cd9f4ae0144 /sys/kern/kern_thr.c | |
| parent | 50e92415c78fb475cfea9b13efe2fbe3442bd220 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_thr.c')
| -rw-r--r-- | sys/kern/kern_thr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 33ec6c49e616..bcbe1685c4c1 100644 --- a/sys/kern/kern_thr.c +++ b/sys/kern/kern_thr.c @@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$"); #include <sys/sched.h> #include <sys/sysctl.h> #include <sys/smp.h> +#include <sys/syscallsubr.h> #include <sys/sysent.h> #include <sys/systm.h> #include <sys/sysproto.h> @@ -143,7 +144,6 @@ create_thread(struct thread *td, mcontext_t *ctx, stack_t stack; struct thread *newtd; struct proc *p; - long id; int error; error = 0; @@ -183,7 +183,6 @@ create_thread(struct thread *td, mcontext_t *ctx, * its storage, because child thread may exit quickly and * memory is freed before parent thread can access it. */ - id = newtd->td_tid; if ((child_tid != NULL && suword_lwpid(child_tid, newtd->td_tid)) || (parent_tid != NULL && |
