diff options
author | Max Kostikov <max@kostikov.co> | 2020-03-31 20:45:15 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2020-03-31 20:45:15 +0200 |
commit | 9773ab7aab3fd694e3ac9de2e88e606d6b04db90 (patch) | |
tree | 2ebbe0373223b16f84cc29bff2a6edff87d1b228 /Zotlabs | |
parent | 6c02fa40f11b2d1bd6d058a569a31ac249975e7e (diff) | |
download | volse-hubzilla-9773ab7aab3fd694e3ac9de2e88e606d6b04db90.tar.gz volse-hubzilla-9773ab7aab3fd694e3ac9de2e88e606d6b04db90.tar.bz2 volse-hubzilla-9773ab7aab3fd694e3ac9de2e88e606d6b04db90.zip |
Use POSIX kill 0 to check expire process status
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 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; } |