diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2002-03-06 19:28:41 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2002-03-06 19:28:41 +0000 |
| commit | ca4b2c1a792312ff074618844ffd77232cdee86c (patch) | |
| tree | f340718e38ac9a4f173cf51ddb7eedc39288a0fd /lib/libpthread/thread/thr_detach.c | |
| parent | a370851f6e65f41287609adc39e39b4e42a4b4d9 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_detach.c')
| -rw-r--r-- | lib/libpthread/thread/thr_detach.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_detach.c b/lib/libpthread/thread/thr_detach.c index b0e6fc446a58..298fdb41b0db 100644 --- a/lib/libpthread/thread/thr_detach.c +++ b/lib/libpthread/thread/thr_detach.c @@ -66,7 +66,9 @@ _pthread_detach(pthread_t pthread) PTHREAD_NEW_STATE(joiner, PS_RUNNING); /* Set the return value for the woken thread: */ - joiner->error = ESRCH; + joiner->join_status.error = ESRCH; + joiner->join_status.ret = NULL; + joiner->join_status.thread = NULL; /* * Disconnect the joiner from the thread being detached: |
