apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r571712 - /apr/apr/trunk/threadproc/win32/proc.c
Date Sat, 01 Sep 2007 06:23:18 GMT
Author: wrowe
Date: Fri Aug 31 23:23:18 2007
New Revision: 571712

URL: http://svn.apache.org/viewvc?rev=571712&view=rev
Log:
Fix r569890 - this error did not hit 1.2 or 0.9 branches,
thankfully.

Submitted by: Steven Narin <steven.narin googlemail.com>

Modified:
    apr/apr/trunk/threadproc/win32/proc.c

Modified: apr/apr/trunk/threadproc/win32/proc.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/threadproc/win32/proc.c?rev=571712&r1=571711&r2=571712&view=diff
==============================================================================
--- apr/apr/trunk/threadproc/win32/proc.c (original)
+++ apr/apr/trunk/threadproc/win32/proc.c Fri Aug 31 23:23:18 2007
@@ -767,7 +767,7 @@
         /* LOCK CRITICAL SECTION 
          * before we begin to manipulate the inherited handles
          */
-        LeaveCriticalSection(&proc_lock);
+        EnterCriticalSection(&proc_lock);
 
         if ((attr->child_in && attr->child_in->filehand)
             || (attr->child_out && attr->child_out->filehand)
@@ -872,7 +872,7 @@
         /* RELEASE CRITICAL SECTION 
          * The state of the inherited handles has been restored.
          */
-        EnterCriticalSection(&proc_lock);
+        LeaveCriticalSection(&proc_lock);
 
 #else /* defined(_WIN32_WCE) */
         rv = CreateProcessW(wprg, wcmd,        /* Executable & Command line */



Mime
View raw message