projects
/
collection4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'github/master'
[collection4.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
a97a615
..
896a612
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-37,10
+37,12
@@
#include "utils_cgi.h"
#include "action_graph.h"
#include "utils_cgi.h"
#include "action_graph.h"
-#include "action_
graph
_data_json.h"
+#include "action_
instance
_data_json.h"
#include "action_graph_def_json.h"
#include "action_list_graphs.h"
#include "action_graph_def_json.h"
#include "action_list_graphs.h"
+#include "action_list_graphs_json.h"
#include "action_list_hosts.h"
#include "action_list_hosts.h"
+#include "action_list_hosts_json.h"
#include "action_search.h"
#include "action_search_json.h"
#include "action_show_graph.h"
#include "action_search.h"
#include "action_search_json.h"
#include "action_show_graph.h"
@@
-64,10
+66,12
@@
static int action_usage (void);
static const action_t actions[] =
{
{ "graph", action_graph },
static const action_t actions[] =
{
{ "graph", action_graph },
- { "
graph_data_json", action_graph
_data_json },
+ { "
instance_data_json", action_instance
_data_json },
{ "graph_def_json", action_graph_def_json },
{ "list_graphs", action_list_graphs },
{ "graph_def_json", action_graph_def_json },
{ "list_graphs", action_list_graphs },
+ { "list_graphs_json", action_list_graphs_json },
{ "list_hosts", action_list_hosts },
{ "list_hosts", action_list_hosts },
+ { "list_hosts_json", action_list_hosts_json },
{ "search", action_search },
{ "search_json", action_search_json },
{ "show_graph", action_show_graph },
{ "search", action_search },
{ "search_json", action_search_json },
{ "show_graph", action_show_graph },
@@
-127,8
+131,9
@@
static int handle_request (void) /* {{{ */
if (i >= actions_num)
status = action_usage ();
if (i >= actions_num)
status = action_usage ();
- fflush (stdout);
- fclose (stdout);
+ /* Call finish before updating the graph list, so clients don't wait for
+ * the update to finish. */
+ FCGI_Finish ();
gl_update (/* request_served = */ 1);
gl_update (/* request_served = */ 1);