foreach($this->pool as $p) {
//echo "CHECK PID: " . $p['pid'] . "\n";
+
+ pcntl_waitpid($p['proc'], $status, WNOHANG);
+
$info = proc_get_status($p['proc']);
//var_dump($info);
//fclose($p['pipes'][1]);
proc_close($p['proc']);
-
+ proc_terminate($p['proc'], 9);
+
//clearstatcache();
//if (file_exists('/proc/'.$p['pid'])) {