mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-02 16:39:15 +00:00
make_lockfile: save current PID
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user