diff options
author | tsimmons <[email protected]> | 2017-01-05 15:56:24 -0600 |
---|---|---|
committer | tsimmons <[email protected]> | 2017-01-05 15:56:24 -0600 |
commit | 8231c039edb45ead97bde5b0a0b96b2b24b28768 (patch) | |
tree | 49e7de0355c24f7d6e03a2895281443e29b964d4 | |
parent | 8b8568e9a3396b61778038cd55d4f1715db6b070 (diff) |
Close lockfile handle before trying to unlink during update.
-rwxr-xr-x | update.php | 4 |
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"); + } ?> |