Make sure we are running on Windows before fclose() to avoid race condition possible in Nix.
This commit is contained in:
parent
8231c039ed
commit
9973b13e19
|
@ -404,8 +404,8 @@
|
||||||
|
|
||||||
PluginHost::getInstance()->run_commands($options);
|
PluginHost::getInstance()->run_commands($options);
|
||||||
|
|
||||||
if (file_exists(LOCK_DIRECTORY . "/$lock_filename")) {
|
if (file_exists(LOCK_DIRECTORY . "/$lock_filename"))
|
||||||
|
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')
|
||||||
fclose($lock_handle);
|
fclose($lock_handle);
|
||||||
unlink(LOCK_DIRECTORY . "/$lock_filename");
|
unlink(LOCK_DIRECTORY . "/$lock_filename");
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue