Daemon can optionally not go into the background

This commit is contained in:
Evan Prodromou
2009-06-28 16:12:23 -04:00
parent 495c85544a
commit 6ca4dfa7ef
2 changed files with 18 additions and 7 deletions

View File

@@ -27,11 +27,12 @@ require_once(INSTALLDIR.'/classes/Notice.php');
class QueueHandler extends Daemon
{
var $_id = 'generic';
function QueueHandler($id=null)
function __construct($id=null, $daemonize=true)
{
parent::__construct($daemonize);
if ($id) {
$this->set_id($id);
}