diff options
author | rjung <rjung@13f79535-47bb-0310-9956-ffa450edef68> | 2013-05-11 07:42:04 +0000 |
---|---|---|
committer | rjung <rjung@13f79535-47bb-0310-9956-ffa450edef68> | 2013-05-11 07:42:04 +0000 |
commit | d8f0fb4aed15a341bdbd1e9d8b211e361cb18092 (patch) | |
tree | dceb4355ea50b6b2a53a3c60ea76ae38de4a0baf /threadproc | |
parent | 0927419452da03b94ea482431cf1623f85dbcda4 (diff) | |
download | libapr-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.c | 2 |
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; } |