From 632996f53e0ff364566a95536b94614387c2582a Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Tue, 31 Mar 2020 20:03:29 +0200 Subject: Add check if expire procedure is still running --- Zotlabs/Daemon/Expire.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs') 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; } -- cgit v1.2.3