You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rj...@apache.org on 2013/05/11 09:43:19 UTC
svn commit: r1481264 - in /apr/apr/branches/1.4.x: ./
threadproc/unix/thread.c
Author: rjung
Date: Sat May 11 07:43:19 2013
New Revision: 1481264
URL: http://svn.apache.org/r1481264
Log:
Use correct pthread constant.
Backport of r1481262 from trunk
resp. r1481263 from 1.5.x.
Modified:
apr/apr/branches/1.4.x/ (props changed)
apr/apr/branches/1.4.x/threadproc/unix/thread.c
Propchange: apr/apr/branches/1.4.x/
------------------------------------------------------------------------------
Merged /apr/apr/trunk:r1481262
Modified: apr/apr/branches/1.4.x/threadproc/unix/thread.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/threadproc/unix/thread.c?rev=1481264&r1=1481263&r2=1481264&view=diff
==============================================================================
--- apr/apr/branches/1.4.x/threadproc/unix/thread.c (original)
+++ apr/apr/branches/1.4.x/threadproc/unix/thread.c Sat May 11 07:43:19 2013
@@ -96,7 +96,7 @@ APR_DECLARE(apr_status_t) apr_threadattr
#else
pthread_attr_getdetachstate(&attr->attr, &state);
#endif
- if (state == 1)
+ if (state == PTHREAD_CREATE_DETACHED)
return APR_DETACH;
return APR_NOTDETACH;
}