summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>2013-05-11 07:42:04 +0000
committerrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>2013-05-11 07:42:04 +0000
commitd8f0fb4aed15a341bdbd1e9d8b211e361cb18092 (patch)
treedceb4355ea50b6b2a53a3c60ea76ae38de4a0baf /threadproc
parent0927419452da03b94ea482431cf1623f85dbcda4 (diff)
downloadlibapr-d8f0fb4aed15a341bdbd1e9d8b211e361cb18092.tar.gz
Use correct pthread constant.
Backport of r1481262 from trunk. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1481263 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r--threadproc/unix/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/threadproc/unix/thread.c b/threadproc/unix/thread.c
index 5639ac706..dde935aa7 100644
--- a/threadproc/unix/thread.c
+++ b/threadproc/unix/thread.c
@@ -96,7 +96,7 @@ APR_DECLARE(apr_status_t) apr_threadattr_detach_get(apr_threadattr_t *attr)
#else
pthread_attr_getdetachstate(&attr->attr, &state);
#endif
- if (state == 1)
+ if (state == PTHREAD_CREATE_DETACHED)
return APR_DETACH;
return APR_NOTDETACH;
}