From: Florian Forster Date: Wed, 28 Jul 2010 10:15:12 +0000 (+0200) Subject: src/main.c: Flush and close STDOUT before calling gl_update(). X-Git-Tag: v4.0.0~69 X-Git-Url: https://git.octo.it/?p=collection4.git;a=commitdiff_plain;h=8e3e3a4bd16003cb8f89709b74d4478ea522832c src/main.c: Flush and close STDOUT before calling gl_update(). This hopefully signals the browser that the request is done before doing the maintenance work. --- diff --git a/src/main.c b/src/main.c index 470d67d..6d8a025 100644 --- a/src/main.c +++ b/src/main.c @@ -123,6 +123,9 @@ static int handle_request (void) /* {{{ */ if (i >= actions_num) status = action_usage (); + fflush (stdout); + fclose (stdout); + gl_update (/* request_served = */ 1); return (status);