aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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;
}