aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-01-24 22:01:56 +0100
committerfabrixxm <fabrix.xm@gmail.com>2011-01-24 22:01:56 +0100
commit2020ea23b106c159a705c26e6c79156aafde75ba (patch)
tree32d813d034fe626a7d85279cb20c2497857e5b0e /include/poller.php
parente9251499dd63523a552bc3bf6274e3b851cba4c8 (diff)
downloadvolse-hubzilla-2020ea23b106c159a705c26e6c79156aafde75ba.tar.gz
volse-hubzilla-2020ea23b106c159a705c26e6c79156aafde75ba.tar.bz2
volse-hubzilla-2020ea23b106c159a705c26e6c79156aafde75ba.zip
Mods to script runned via CLI to permits to run also included
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php10
1 files changed, 6 insertions, 4 deletions
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) {