summaryrefslogtreecommitdiff
path: root/exit.c
diff options
context:
space:
mode:
authorrpj <rpj>1998-08-06 08:32:53 +0000
committerrpj <rpj>1998-08-06 08:32:53 +0000
commit9b0e93aa59205fa6e35f0d8e5c2065c6e806f114 (patch)
tree229bda74f9892a8f7bf12693be7d029d98aac87b /exit.c
parentf1f8c6bef1563b8752967631ad024953584964d7 (diff)
*** empty log message ***
Diffstat (limited to 'exit.c')
-rw-r--r--exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exit.c b/exit.c
index 4a1943b..be7db75 100644
--- a/exit.c
+++ b/exit.c
@@ -57,7 +57,7 @@ _pthread_exit(pthread_t thread, void * value, int return_code)
be deleted by the last waiting pthread_join() after this thread
has terminated. */
- if (pthread_attr_getdetachstate(thread, &detachstate) == 0
+ if (pthread_attr_getdetachstate(&thread->attr, &detachstate) == 0
&& detachstate == PTHREAD_CREATE_DETACHED
&& thread->join_count == 0)
{