src/main.c: Call FCGI_Finish() before gl_update().
[collection4.git] / src / main.c
index 0722403..877f61b 100644 (file)
@@ -127,8 +127,9 @@ static int handle_request (void) /* {{{ */
     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);