diff options
| author | Mike Makonnen <mtm@FreeBSD.org> | 2004-10-06 14:23:00 +0000 |
|---|---|---|
| committer | Mike Makonnen <mtm@FreeBSD.org> | 2004-10-06 14:23:00 +0000 |
| commit | 401901ac438e4329e90fa82fbb7c77d527988113 (patch) | |
| tree | 3804089a0d0cecc531066dc2a0a074eddea8153b /sys/kern | |
| parent | 18d2addc23a15f394376b15d645d91ee9c614ccc (diff) | |
Notes
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/kern_thr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 6a5f22030478..402667a10241 100644 --- a/sys/kern/kern_thr.c +++ b/sys/kern/kern_thr.c @@ -186,12 +186,16 @@ thr_self(struct thread *td, struct thr_self_args *uap) int thr_exit(struct thread *td, struct thr_exit_args *uap) - /* NULL */ + /* long *state */ { struct proc *p; p = td->td_proc; + /* Signal userland that it can free the stack. */ + if ((void *)uap->state != NULL) + suword((void *)uap->state, 1); + PROC_LOCK(p); mtx_lock_spin(&sched_lock); |
