fix: possible additional fix for non-terminating rrdtool processes.

Sends the quit command to the process, but doesn't call close as that can block the php process.
When the process exits all objects are destroyed and Proc::terminate() is called, this will terminate 15 then kill 9.
This commit is contained in:
Tony Murray
2016-09-23 16:47:14 -05:00
parent b5cd175cf9
commit 37dba71101

View File

@ -81,10 +81,10 @@ function rrdtool_close()
/** @var Proc $rrd_async_process */
if (rrdtool_running($rrd_sync_process)) {
$rrd_sync_process->close('quit');
$rrd_sync_process->sendCommand('quit');
}
if (rrdtool_running($rrd_async_process)) {
$rrd_async_process->close('quit');
$rrd_async_process->sendCommand('quit');
}
}