aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Expire.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2020-03-31 21:00:21 +0200
committerMax Kostikov <max@kostikov.co>2020-03-31 21:00:21 +0200
commit4a56b77f64f1483bc933a69a70be02df2f8f9187 (patch)
treeacdcfe87d197e0bf91e92f31ac85e0ee7940e3cb /Zotlabs/Daemon/Expire.php
parent9773ab7aab3fd694e3ac9de2e88e606d6b04db90 (diff)
downloadvolse-hubzilla-4a56b77f64f1483bc933a69a70be02df2f8f9187.tar.gz
volse-hubzilla-4a56b77f64f1483bc933a69a70be02df2f8f9187.tar.bz2
volse-hubzilla-4a56b77f64f1483bc933a69a70be02df2f8f9187.zip
Use pconfig
Diffstat (limited to 'Zotlabs/Daemon/Expire.php')
-rw-r--r--Zotlabs/Daemon/Expire.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Daemon/Expire.php b/Zotlabs/Daemon/Expire.php
index bc9e720e9..4bdf7ddeb 100644
--- a/Zotlabs/Daemon/Expire.php
+++ b/Zotlabs/Daemon/Expire.php
@@ -9,12 +9,12 @@ class Expire {
cli_startup();
- if ($pid = get_xconfig(0, 'expire', 'procid', false) && (function_exists('posix_kill') ? posix_kill($pid, 0) : true)) {
+ if ($pid = get_pconfig(0, 'expire', 'procid', false) && (function_exists('posix_kill') ? posix_kill($pid, 0) : true)) {
logger('Expire: procedure already run with PID ' . $pid, LOGGER_DEBUG);
return;
}
-
- set_xconfig(0, 'expire', 'procid', getmypid());
+
+ set_pconfig(0, 'expire', 'procid', getmypid());
// perform final cleanup on previously delete items
@@ -98,6 +98,6 @@ class Expire {
logger('Expire: sys: done', LOGGER_DEBUG);
}
- del_xconfig(0, 'expire', 'procid');
+ del_pconfig(0, 'expire', 'procid');
}
}