cvs: php-src(PHP_4_3) /ext/session mod_files.c
| From: | Jani Taskinen | Date: | Thu, 25 Sep 2003 14:53:59 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/session mod_files.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-23894@lists.php.net to get a copy of this message | ||
sniper Thu Sep 25 10:53:59 2003 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/session mod_files.c
Log:
MFH
Index: php-src/ext/session/mod_files.c
diff -u php-src/ext/session/mod_files.c:1.83.2.6 php-src/ext/session/mod_files.c:1.83.2.7
--- php-src/ext/session/mod_files.c:1.83.2.6 Wed Sep 24 19:39:22 2003
+++ php-src/ext/session/mod_files.c Thu Sep 25 10:53:58 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mod_files.c,v 1.83.2.6 2003/09/24 23:39:22 iliaa Exp $ */
+/* $Id: mod_files.c,v 1.83.2.7 2003/09/25 14:53:58 sniper Exp $ */
#include "php.h"
@@ -124,7 +124,11 @@
static void ps_files_close(ps_files *data)
{
if (data->fd != -1) {
+#ifdef PHP_WIN32
+ /* On Win32 locked files that are closed without being explicitly unlocked
+ will be unlocked only when "system resources become available". */
flock(data->fd, LOCK_UN);
+#endif
close(data->fd);
data->fd = -1;
}