From 64853769b3b90e24b16dfd4d10de3f64b97fd5e5 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Fri, 17 Jul 2009 18:07:53 -0700 Subject: Moved $_id from queuehandler to daemon, as other daemons need it too. --- lib/daemon.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/daemon.php') 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(); -- cgit v1.2.3