From 8e3e3a4bd16003cb8f89709b74d4478ea522832c Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 28 Jul 2010 12:15:12 +0200 Subject: [PATCH] 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. --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.30.2