From 37dba71101166d9411e0aa4c2f622fbeca107eb4 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Fri, 23 Sep 2016 16:47:14 -0500 Subject: [PATCH] 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. --- includes/rrdtool.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/rrdtool.inc.php b/includes/rrdtool.inc.php index 9161f84ddf..cb811f1f64 100644 --- a/includes/rrdtool.inc.php +++ b/includes/rrdtool.inc.php @@ -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'); } }