mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 01:15:56 +00:00
make_lockfile: don't do inode checking on windows
This commit is contained in:
@@ -995,8 +995,12 @@
|
|||||||
$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') {
|
||||||
return false;
|
if ($stat_h["ino"] != $stat_f["ino"] ||
|
||||||
|
$stat_h["dev"] != $stat_f["dev"]) {
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (function_exists('posix_getpid')) {
|
if (function_exists('posix_getpid')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user