projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d3411c
)
Notify.php
author
Alan Knowles
<alan@akbkhome.com>
Sun, 16 Jun 2013 13:44:08 +0000
(21:44 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sun, 16 Jun 2013 13:44:08 +0000
(21:44 +0800)
Notify.php
patch
|
blob
|
history
diff --git
a/Notify.php
b/Notify.php
index
218cc2b
..
74ce162
100644
(file)
--- a/
Notify.php
+++ b/
Notify.php
@@
-264,7
+264,10
@@
class Pman_Core_Notify extends Pman
function run($id, $email, $cmdOpts="")
{
- // phpinfo();exit;
+
+
+
+ // phpinfo();exit;
$tn = tempnam(ini_get('session.save_path'),'stdout') . '.stdout';
$descriptorspec = array(
0 => array("pipe", 'r'), // stdin is a pipe that the child will read from
@@
-289,6
+292,12
@@
class Pman_Core_Notify extends Pman
echo "call proc_open $cmd\n";
+ if ($this->max_pool_size === 1) {
+ `$cmd`;
+ return;
+ }
+
+
if (!empty($this->opts['dryrun'])) {
echo "DRY RUN\n";
return;