src/main.c: Call FCGI_Finish() before gl_update().
authorFlorian Forster <octo@noris.net>
Tue, 18 Jan 2011 15:57:25 +0000 (16:57 +0100)
committerFlorian Forster <octo@noris.net>
Tue, 18 Jan 2011 15:57:25 +0000 (16:57 +0100)
src/main.c

index 0722403..877f61b 100644 (file)
@@ -127,8 +127,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);