Notify.php
authorAlan Knowles <alan@akbkhome.com>
Sun, 16 Jun 2013 13:44:08 +0000 (21:44 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 16 Jun 2013 13:44:08 +0000 (21:44 +0800)
Notify.php

index 218cc2b..74ce162 100644 (file)
@@ -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;