summaryrefslogtreecommitdiff
path: root/lib/daemon.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-07-17 18:07:53 -0700
committerZach Copley <zach@controlyourself.ca>2009-07-17 18:07:53 -0700
commit64853769b3b90e24b16dfd4d10de3f64b97fd5e5 (patch)
tree3ecdf3e2eabff395ad03cb227b16dd66fbffeec5 /lib/daemon.php
parent1da17f678997c0247cd6caae99e1f0de68376395 (diff)
Moved $_id from queuehandler to daemon, as other daemons need it too.
Diffstat (limited to 'lib/daemon.php')
-rw-r--r--lib/daemon.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/daemon.php b/lib/daemon.php
index 9d89c63e7..231f5414e 100644
--- a/lib/daemon.php
+++ b/lib/daemon.php
@@ -24,6 +24,7 @@ if (!defined('LACONICA')) {
class Daemon
{
var $daemonize = true;
+ var $_id = 'generic';
function __construct($daemonize = true)
{
@@ -35,6 +36,16 @@ class Daemon
return null;
}
+ function get_id()
+ {
+ return $this->_id;
+ }
+
+ function set_id($id)
+ {
+ $this->_id = $id;
+ }
+
function background()
{
$pid = pcntl_fork();