From: Andrew Dolgov Date: Tue, 11 Jun 2013 08:55:47 +0000 (+0400) Subject: make_lockfile: don't do inode checking on windows X-Git-Tag: 1.8~3 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1fcebfb3c7275292754aa4a133bead18cd3dede9;p=tt-rss.git make_lockfile: don't do inode checking on windows --- diff --git a/include/functions.php b/include/functions.php index 87917a5c..f05b5cb4 100644 --- a/include/functions.php +++ b/include/functions.php @@ -995,8 +995,12 @@ $stat_h = fstat($fp); $stat_f = stat(LOCK_DIRECTORY . "/$filename"); - if ($stat_h["ino"] != $stat_f["ino"] || $stat_h["dev"] != $stat_f["dev"]) { - return false; + if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') { + if ($stat_h["ino"] != $stat_f["ino"] || + $stat_h["dev"] != $stat_f["dev"]) { + + return false; + } } if (function_exists('posix_getpid')) {