aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2020-03-31 20:03:29 +0200
committerMax Kostikov <max@kostikov.co>2020-03-31 20:03:29 +0200
commit632996f53e0ff364566a95536b94614387c2582a (patch)
treea7696dc9883a7d3a570c6117b99e13edcd083304 /Zotlabs
parent710448e73fe753c3bd1cac954ea7b5a750a416d1 (diff)
downloadvolse-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.php2
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;
}