mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:45:55 +00:00
Make sure we are running on Windows before fclose() to avoid race condition possible in Nix.
This commit is contained in:
@@ -404,8 +404,8 @@
|
||||
|
||||
PluginHost::getInstance()->run_commands($options);
|
||||
|
||||
if (file_exists(LOCK_DIRECTORY . "/$lock_filename")) {
|
||||
fclose($lock_handle);
|
||||
if (file_exists(LOCK_DIRECTORY . "/$lock_filename"))
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')
|
||||
fclose($lock_handle);
|
||||
unlink(LOCK_DIRECTORY . "/$lock_filename");
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user