From bcd38449fa6b379c9cfe79d2cd949dca200b8b26 Mon Sep 17 00:00:00 2001 From: Philip Kovacs Date: Fri, 16 Dec 2005 00:08:42 +0000 Subject: [PATCH] flush stdout immediately for console output git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@449 7f574dfc-610e-0410-a909-a81674777703 --- src/conky.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conky.c b/src/conky.c index b48bcb6e..f6588393 100644 --- a/src/conky.c +++ b/src/conky.c @@ -3510,6 +3510,7 @@ static void draw_string(const char *s) width_of_s = get_string_width(s); if (out_to_console) { printf("%s\n", s); + fflush(stdout); /* output immediately, don't buffer */ } /* daemon_run(s); the daemon can be called here, but we need to have a buffer in daemon_run() and we need to tell it when everything is ready to be sent */ memset(tmpstring1,0,TEXT_BUFFER_SIZE);