]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
Make sure we are running on Windows before fclose() to avoid race condition possible...
[tt-rss.git] / update.php
index f174361853a9106269cdb01264ad28b339d224d9..65cf9f06efbea909b923a305abf6d954dca1b020 100755 (executable)
        PluginHost::getInstance()->run_commands($options);
 
        if (file_exists(LOCK_DIRECTORY . "/$lock_filename"))
+               if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')
+                       fclose($lock_handle);
                unlink(LOCK_DIRECTORY . "/$lock_filename");
 ?>