cvs: php-src /ext/session mod_files.c
| From: | Jani Taskinen | Date: | Thu, 25 Sep 2003 14:53:42 +0000 |
| Subject: | cvs: php-src /ext/session mod_files.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-23893@lists.php.net to get a copy of this message | ||
sniper Thu Sep 25 10:53:42 2003 EDT
Modified files:
/php-src/ext/session mod_files.c
Log:
This is only needed for Windows.
Index: php-src/ext/session/mod_files.c
diff -u php-src/ext/session/mod_files.c:1.92 php-src/ext/session/mod_files.c:1.93
--- php-src/ext/session/mod_files.c:1.92 Wed Sep 24 19:39:14 2003
+++ php-src/ext/session/mod_files.c Thu Sep 25 10:53:41 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mod_files.c,v 1.92 2003/09/24 23:39:14 iliaa Exp $ */
+/* $Id: mod_files.c,v 1.93 2003/09/25 14:53:41 sniper Exp $ */
#include "php.h"
@@ -127,7 +127,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;
}