win32_pclose() error exit doesn't unlock mutex
Jan Dubois [Thu, 16 Mar 2006 16:30:23 +0000 (08:30 -0800)]
Message-ID: <02c701c64959$fac63ad0$6062a8c0@candy>

p4raw-id: //depot/perl@27528

win32/win32.c
wince/wince.c

index e2b6e0b..240aa62 100644 (file)
@@ -2818,6 +2818,7 @@ win32_pclose(PerlIO *pf)
        childpid = 0;
 
     if (!childpid) {
+        UNLOCK_FDPID_MUTEX;
        errno = EBADF;
         return -1;
     }
index af0d364..dbd960b 100644 (file)
@@ -2886,6 +2886,7 @@ win32_pclose(PerlIO *pf)
        childpid = 0;
 
     if (!childpid) {
+        UNLOCK_FDPID_MUTEX;
        errno = EBADF;
         return -1;
     }