Fix defunct process issues: create Proc class (#4210)

* Proc class
Encapsulate processes in a class, when they go out of scope, we can use the __destruct() process to make sure the process terminates.

* Fix rrdtool_last checks failing

* Don't close rrdtool in rrd_graph
Try to start rrdtool process if they haven't been started yet
Remove some extra debug output

* phpdocs added
several cleanups
should still be functioning the same
Only open one  rrdtool process for graph.php
This commit is contained in:
Tony Murray
2016-08-26 01:50:29 -05:00
committed by Neil Lathwood
parent 3d0edb46cc
commit 200e670315
6 changed files with 294 additions and 92 deletions

View File

@@ -158,4 +158,4 @@ if ($poller_time > 300) {
}
echo "\nCompleted in $poller_time sec\n";
rrdtool_terminate();
rrdtool_close();