make_lockfile: don't do inode checking on windows

This commit is contained in:
Andrew Dolgov 2013-06-11 12:55:47 +04:00
parent da8d534ac1
commit 1fcebfb3c7
1 changed files with 6 additions and 2 deletions

View File

@ -995,9 +995,13 @@
$stat_h = fstat($fp); $stat_h = fstat($fp);
$stat_f = stat(LOCK_DIRECTORY . "/$filename"); $stat_f = stat(LOCK_DIRECTORY . "/$filename");
if ($stat_h["ino"] != $stat_f["ino"] || $stat_h["dev"] != $stat_f["dev"]) { if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
if ($stat_h["ino"] != $stat_f["ino"] ||
$stat_h["dev"] != $stat_f["dev"]) {
return false; return false;
} }
}
if (function_exists('posix_getpid')) { if (function_exists('posix_getpid')) {
fwrite($fp, posix_getpid() . "\n"); fwrite($fp, posix_getpid() . "\n");