1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-23 19:39:06 +00:00

flush stdout immediately for console output

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@449 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Philip Kovacs 2005-12-16 00:08:42 +00:00
parent e0e8298713
commit bcd38449fa

View File

@ -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);