This should fix the error some users are experiencing
This commit is contained in:
parent
3374be6f5a
commit
bd66c00727
@ -135,6 +135,11 @@ while(true)
|
|||||||
elseif($debug)
|
elseif($debug)
|
||||||
{
|
{
|
||||||
echo "Attempt ",$i+1," failed\n";
|
echo "Attempt ",$i+1," failed\n";
|
||||||
|
if($process)
|
||||||
|
{
|
||||||
|
$process->kill();
|
||||||
|
$process = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -234,7 +239,7 @@ class Process
|
|||||||
fclose($this->pipes[2]);
|
fclose($this->pipes[2]);
|
||||||
|
|
||||||
$ppid = $status['pid'];
|
$ppid = $status['pid'];
|
||||||
$pids = preg_split('/\s+/', `ps -o pid --no-heading --pid $ppid`);
|
$pids = preg_split('/\s+/', `ps -o pid --no-heading --ppid $ppid`);
|
||||||
foreach($pids as $pid)
|
foreach($pids as $pid)
|
||||||
{
|
{
|
||||||
if(is_numeric($pid))
|
if(is_numeric($pid))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user