diff options
author | Max Kostikov <max@kostikov.co> | 2020-03-31 20:15:09 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2020-03-31 20:15:09 +0200 |
commit | 6c02fa40f11b2d1bd6d058a569a31ac249975e7e (patch) | |
tree | 72bd39aa5a6a2d133df5ebc76ca13af9a53cafef /Zotlabs/Daemon/Expire.php | |
parent | 632996f53e0ff364566a95536b94614387c2582a (diff) | |
download | volse-hubzilla-6c02fa40f11b2d1bd6d058a569a31ac249975e7e.tar.gz volse-hubzilla-6c02fa40f11b2d1bd6d058a569a31ac249975e7e.tar.bz2 volse-hubzilla-6c02fa40f11b2d1bd6d058a569a31ac249975e7e.zip |
Check if POSIX PHP module is available on PID check
Diffstat (limited to 'Zotlabs/Daemon/Expire.php')
-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 c8fb72bb2..374f919e6 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) && posix_getpgid($pid)) { + if ($pid = get_xconfig(0, 'expire', 'procid', false) && (function_exists('posix_getpgid') ? posix_getpgid($pid) : true)) { logger('Expire: procedure already run with PID ' . $pid, LOGGER_DEBUG); return; } |