Don't fail on rrd close (#12659)

if process already left
This commit is contained in:
Tony Murray
2021-03-26 22:33:50 -05:00
committed by GitHub
parent 5ceba5cdb7
commit c10c630708

View File

@ -176,8 +176,12 @@ class Proc
public function close($command = null)
{
if (isset($command)) {
if (is_resource($this->_pipes[0])) {
$this->sendInput($this->checkAddEOL($command));
try {
if (is_resource($this->_pipes[0])) {
$this->sendInput($this->checkAddEOL($command));
}
} catch (\ErrorException $e) {
// might have closed already
}
}