]> granicus.if.org Git - php/commitdiff
This is only needed for Windows.
authorfoobar <sniper@php.net>
Thu, 25 Sep 2003 14:53:41 +0000 (14:53 +0000)
committerfoobar <sniper@php.net>
Thu, 25 Sep 2003 14:53:41 +0000 (14:53 +0000)
ext/session/mod_files.c

index bd5bf660a64a30bd9dbaedb4c536ccf74be786df..2401763a1a2f99567373e808d9219835000fc306 100644 (file)
@@ -127,7 +127,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;
        }