X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fimdaemon.php;h=7d9ff1fe7dc7d1d65d0007c14e76219e713e196d;hb=b53e1439969bfa2c0b551d8cc2fc8fe15652c62a;hp=4a2c942234f6112d19f017aaf64e1de61fcfdbff;hpb=c187bf55974347f7ddb4f28714af57861dce8f08;p=quix0rs-gnu-social.git diff --git a/scripts/imdaemon.php b/scripts/imdaemon.php index 4a2c942234..7d9ff1fe7d 100755 --- a/scripts/imdaemon.php +++ b/scripts/imdaemon.php @@ -33,7 +33,7 @@ Daemon script for receiving new notices from IM users. END_OF_IM_HELP; -require_once INSTALLDIR.'/scripts/commandline.inc'; +require_once INSTALLDIR.'/scripts/commandline.inc.php'; class ImDaemon extends SpawningDaemon { @@ -53,7 +53,7 @@ class ImDaemon extends SpawningDaemon { common_log(LOG_INFO, 'Waiting to listen to IM connections and queues'); - $master = new ImMaster($this->get_id()); + $master = new ImMaster($this->get_id(), $this->processManager()); $master->init($this->allsites); $master->service(); @@ -66,6 +66,14 @@ class ImDaemon extends SpawningDaemon class ImMaster extends IoMaster { + protected $processManager; + + function __construct($id, $processManager) + { + parent::__construct($id); + $this->processManager = $processManager; + } + /** * Initialize IoManagers for the currently configured site * which are appropriate to this instance. @@ -77,6 +85,7 @@ class ImMaster extends IoMaster $qm = QueueManager::get(); $qm->setActiveGroup('im'); $classes[] = $qm; + $classes[] = $this->processManager; } Event::handle('EndImDaemonIoManagers', array(&$classes)); foreach ($classes as $class) {