From 52896fbc8c94f9bdd9426459bf910e4cb628be24 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 19 Feb 2014 16:43:25 +0800 Subject: [PATCH] Notify.php --- Notify.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Notify.php b/Notify.php index 95a60312..b335ecfb 100644 --- a/Notify.php +++ b/Notify.php @@ -280,7 +280,9 @@ class Pman_Core_Notify extends Pman } // phpinfo();exit; - $tn = tempnam(ini_get('session.save_path'),'stdout') . '.stdout'; + $tnx = tempnam(ini_get('session.save_path'),'stdout'); + unlink($tnx); + $tn = $tnx . '.stdout'; $descriptorspec = array( 0 => array("pipe", 'r'), // stdin is a pipe that the child will read from 1 => array("file", $tn, 'w'), // stdout is a pipe that the child will write to -- 2.39.2