diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2001-11-17 14:28:39 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2001-11-17 14:28:39 +0000 |
| commit | ccc7b69205d48bc890a1565811ef265a7904977c (patch) | |
| tree | d9b490926b6ae401659e2052a1b89c5bea09c6d4 /lib/libpthread/thread/thr_exit.c | |
| parent | 608f31f640fa809e3d3f91a58b0bcbe10e125267 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_exit.c')
| -rw-r--r-- | lib/libpthread/thread/thr_exit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_exit.c b/lib/libpthread/thread/thr_exit.c index 937635058de1..d916f5c3e232 100644 --- a/lib/libpthread/thread/thr_exit.c +++ b/lib/libpthread/thread/thr_exit.c @@ -220,8 +220,9 @@ _pthread_exit(void *status) } /* Set the return value for the joining thread: */ - pthread->ret = curthread->ret; - pthread->error = 0; + pthread->join_status.ret = curthread->ret; + pthread->join_status.error = 0; + pthread->join_status.thread = NULL; /* Make this thread collectable by the garbage collector. */ PTHREAD_ASSERT(((curthread->attr.flags & PTHREAD_DETACHED) == |
