From: Alan Knowles Date: Fri, 3 Feb 2012 02:31:15 +0000 (+0800) Subject: Notify.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=e56412df0d8fc31e4acd067bb70f88196208c3fc;p=Pman.Core Notify.php --- diff --git a/Notify.php b/Notify.php index 377193d1..2f611028 100644 --- a/Notify.php +++ b/Notify.php @@ -186,8 +186,10 @@ class Pman_Core_Notify extends Pman echo $cmd . "\n"; $pipe = array(); $p = proc_open($cmd, $descriptorspec, $pipes, $cwd ); + $info = proc_get_status($p['proc']); $this->pool[] = array( 'proc' => $p, + 'pid' => $info['pid'], 'out' => $tn, 'cmd' => $cmd, 'email' => $email