From 8231c039edb45ead97bde5b0a0b96b2b24b28768 Mon Sep 17 00:00:00 2001 From: tsimmons Date: Thu, 5 Jan 2017 15:56:24 -0600 Subject: [PATCH] Close lockfile handle before trying to unlink during update. --- update.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); + } ?> -- 2.39.5