You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/09/01 08:23:18 UTC
svn commit: r571712 - /apr/apr/trunk/threadproc/win32/proc.c
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 */