summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authortsimmons <[email protected]>2017-01-05 15:56:24 -0600
committertsimmons <[email protected]>2017-01-05 15:56:24 -0600
commit8231c039edb45ead97bde5b0a0b96b2b24b28768 (patch)
tree49e7de0355c24f7d6e03a2895281443e29b964d4 /update.php
parent8b8568e9a3396b61778038cd55d4f1715db6b070 (diff)
Close lockfile handle before trying to unlink during update.
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/update.php b/update.php
index f17436185..ec6875971 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");
+ }
?>