mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user