),
);
-
+ var $nice_level = false;
var $max_pool_size = 10;
var $table = 'core_notify';
function run($id, $email, $cmdOpts="")
{
- static $renice = fase;
+ static $renice = false;
if (!$renice) {
require_once 'System.php';
$renice = System::which('renice');
$p = proc_open($cmd, $descriptorspec, $pipes, $cwd );
$info = proc_get_status($p);
+
+ if ($this->nice_level !== false) {
+ $rcmd = "$renice {$this->nice_level} {$info['pid']}";
+ `$rcmd`;
+ }
$this->pool[] = array(
'proc' => $p,
'pid' => $info['pid'],