From 9773ab7aab3fd694e3ac9de2e88e606d6b04db90 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Tue, 31 Mar 2020 20:45:15 +0200 Subject: Use POSIX kill 0 to check expire process status --- 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 374f919e6..bc9e720e9 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) && (function_exists('posix_getpgid') ? posix_getpgid($pid) : true)) { + if ($pid = get_xconfig(0, 'expire', 'procid', false) && (function_exists('posix_kill') ? posix_kill($pid, 0) : true)) { logger('Expire: procedure already run with PID ' . $pid, LOGGER_DEBUG); return; } -- cgit v1.2.3