[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] =?utf-8?q?svn:_/pecl/dbase/trunk/_dbf=5Fhead.c?=
From: Christoph_Michael_Becker <cmb () php ! net>
Date: 2016-10-30 18:39:05
Message-ID: svn-cmb-1477852745-340807-985453507 () svn ! php ! net
[Download RAW message or body]
cmb Sun, 30 Oct 2016 18:39:05 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=340807
Log:
Fix regression bug regarding locking
If get_dbf_head() failed the database file was not unlocked, what could
cause deadlocks on Windows.
Changed paths:
U pecl/dbase/trunk/dbf_head.c
Modified: pecl/dbase/trunk/dbf_head.c
===================================================================
--- pecl/dbase/trunk/dbf_head.c 2016-10-30 17:56:13 UTC (rev 340806)
+++ pecl/dbase/trunk/dbf_head.c 2016-10-30 18:39:05 UTC (rev 340807)
@@ -285,6 +285,8 @@
}
if ((dbh = get_dbf_head(fd)) == NULL) {
+ php_flock(fd, LOCK_UN);
+ close(fd);
return NULL;
}
--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic