Notify.php
authorAlan Knowles <alan@akkbhome.com>
Sun, 10 Apr 2011 07:52:02 +0000 (15:52 +0800)
committerAlan Knowles <alan@akkbhome.com>
Sun, 10 Apr 2011 07:52:02 +0000 (15:52 +0800)
Notify.php

index dbf0cd6..42967f8 100644 (file)
@@ -67,9 +67,11 @@ class Pman_Core_Notify extends Pman
     
     function run($id)
     {
+        
+        $tn = tempnam(ini_get('session.save_path'),'stdout');
         $descriptorspec = array(
             0 => array("pipe", 'r'),  // stdin is a pipe that the child will read from
-            1 => array("pipe", 'w'),  // stdout is a pipe that the child will write to
+            1 => array("file", $tn, 'w'),  // stdout is a pipe that the child will write to
             2 => array("pipe", "w") // stderr is a file to write to
          );
         $php = $_SERVER["_"];