httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r743894 - /httpd/httpd/trunk/server/mpm/prefork/prefork.c
Date Thu, 12 Feb 2009 21:40:20 GMT
Author: trawick
Date: Thu Feb 12 21:40:20 2009
New Revision: 743894

URL: http://svn.apache.org/viewvc?rev=743894&view=rev
Log:
Fix a crash with r742218 by calling apr_os_thread_put() properly.

(The first parameter to apr_os_thread_put() must be initialized, either to
NULL or to an existing apr_thread_t.)


Modified:
    httpd/httpd/trunk/server/mpm/prefork/prefork.c

Modified: httpd/httpd/trunk/server/mpm/prefork/prefork.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/prefork/prefork.c?rev=743894&r1=743893&r2=743894&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/prefork/prefork.c (original)
+++ httpd/httpd/trunk/server/mpm/prefork/prefork.c Thu Feb 12 21:40:20 2009
@@ -432,7 +432,7 @@
 static void child_main(int child_num_arg)
 {
 #if APR_HAS_THREADS
-    apr_thread_t *thd;
+    apr_thread_t *thd = NULL;
     apr_os_thread_t osthd;
 #endif
     apr_pool_t *ptrans;



Mime
View raw message