summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index abd1f20d5..8eb6d79a6 100644
--- a/functions.php
+++ b/functions.php
@@ -2235,7 +2235,8 @@
function make_lockfile($filename) {
$fp = fopen(LOCK_DIRECTORY . "/$filename", "w");
- if (flock($fp, LOCK_EX | LOCK_NB)) {
+ if (flock($fp, LOCK_EX | LOCK_NB)) {
+ fwrite($fp, posix_getpid() . "\n");
return $fp;
} else {
return false;