From d5ec2175793c56991285f07eeea929a1ee6927f5 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sun, 16 Jun 2013 21:58:41 +0800 Subject: [PATCH] Notify.php --- Notify.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Notify.php b/Notify.php index 7e4f65ee..1b00e614 100644 --- a/Notify.php +++ b/Notify.php @@ -309,6 +309,11 @@ class Pman_Core_Notify extends Pman $p = proc_open($cmd, $descriptorspec, $pipes, $cwd ); $info = proc_get_status($p); + + if ($this->nice_level !== false) { + $rcmd = "$renice 19 {$info['pid']}"; + `$rcmd`; + } $this->pool[] = array( 'proc' => $p, 'pid' => $info['pid'], -- 2.39.2