From 2020ea23b106c159a705c26e6c79156aafde75ba Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Mon, 24 Jan 2011 22:01:56 +0100 Subject: Mods to script runned via CLI to permits to run also included --- include/poller.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'include/poller.php') diff --git a/include/poller.php b/include/poller.php index 024b9fbcd..a4bc60767 100644 --- a/include/poller.php +++ b/include/poller.php @@ -19,11 +19,12 @@ $a->set_baseurl(get_config('system','url')); logger('poller: start'); - + // run queue delivery process in the background $php_path = ((x($a->config,'php_path') && strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php'); - proc_close(proc_open("\"$php_path\" \"include/queue.php\" &", array(), $foo)); + //proc_close(proc_open("\"$php_path\" \"include/queue.php\" &", array(), $foo)); + proc_run($php_path,"include/queue.php"); $hub_update = false; @@ -46,8 +47,9 @@ $sql_extra AND `self` = 0 AND `blocked` = 0 AND `readonly` = 0 ORDER BY RAND()"); - if(! count($contacts)) - killme(); + if(! count($contacts)){ + killme(); return; + } foreach($contacts as $contact) { -- cgit v1.2.3