From: tsimmons Date: Thu, 5 Jan 2017 21:56:24 +0000 (-0600) Subject: Close lockfile handle before trying to unlink during update. X-Git-Tag: 17.1~23^2~1 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=8231c039edb45ead97bde5b0a0b96b2b24b28768 Close lockfile handle before trying to unlink during update. --- diff --git a/update.php b/update.php index f1743618..ec687597 100755 --- a/update.php +++ b/update.php @@ -404,6 +404,8 @@ PluginHost::getInstance()->run_commands($options); - if (file_exists(LOCK_DIRECTORY . "/$lock_filename")) + if (file_exists(LOCK_DIRECTORY . "/$lock_filename")) { + fclose($lock_handle); unlink(LOCK_DIRECTORY . "/$lock_filename"); + } ?>