apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r1481262 - /apr/apr/trunk/threadproc/unix/thread.c
Date Sat, 11 May 2013 07:40:54 GMT
Author: rjung
Date: Sat May 11 07:40:54 2013
New Revision: 1481262

URL: http://svn.apache.org/r1481262
Log:
Use correct pthread constant.

Modified:
    apr/apr/trunk/threadproc/unix/thread.c

Modified: apr/apr/trunk/threadproc/unix/thread.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/threadproc/unix/thread.c?rev=1481262&r1=1481261&r2=1481262&view=diff
==============================================================================
--- apr/apr/trunk/threadproc/unix/thread.c (original)
+++ apr/apr/trunk/threadproc/unix/thread.c Sat May 11 07:40:54 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;
 }



Mime
View raw message