diff options
author | Max Kostikov <max@kostikov.co> | 2020-03-31 20:03:29 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2020-03-31 20:03:29 +0200 |
commit | 632996f53e0ff364566a95536b94614387c2582a (patch) | |
tree | a7696dc9883a7d3a570c6117b99e13edcd083304 /Zotlabs | |
parent | 710448e73fe753c3bd1cac954ea7b5a750a416d1 (diff) | |
download | volse-hubzilla-632996f53e0ff364566a95536b94614387c2582a.tar.gz volse-hubzilla-632996f53e0ff364566a95536b94614387c2582a.tar.bz2 volse-hubzilla-632996f53e0ff364566a95536b94614387c2582a.zip |
Add check if expire procedure is still running
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Daemon/Expire.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Expire.php b/Zotlabs/Daemon/Expire.php index 186e88fc9..c8fb72bb2 100644 --- a/Zotlabs/Daemon/Expire.php +++ b/Zotlabs/Daemon/Expire.php @@ -9,7 +9,7 @@ class Expire { cli_startup(); - if ($pid = get_xconfig(0, 'expire', 'procid', false)) { + if ($pid = get_xconfig(0, 'expire', 'procid', false) && posix_getpgid($pid)) { logger('Expire: procedure already run with PID ' . $pid, LOGGER_DEBUG); return; } |