summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-09-25 14:53:58 +0000
committerfoobar <sniper@php.net>2003-09-25 14:53:58 +0000
commit40a1c4b4f48d8908f505e3605e721fbd095082a4 (patch)
tree017320fdbc372b0f91877aa1a2f350cfb4454acc /ext
parent283476972f054e22ff0a2e3020217e25a0d88fab (diff)
downloadphp-git-40a1c4b4f48d8908f505e3605e721fbd095082a4.tar.gz
MFH
Diffstat (limited to 'ext')
-rw-r--r--ext/session/mod_files.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index 40b403d3d5..8d9a0f9f12 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -124,7 +124,11 @@ static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, cons
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;
}