]> sigrok.org Git - libsigrok.git/commit
log: flush log lines, to cope with non-terminal output (pipes)
authorGerhard Sittig <redacted>
Mon, 29 Jan 2018 19:10:36 +0000 (20:10 +0100)
committerGerhard Sittig <redacted>
Fri, 9 Feb 2018 20:59:18 +0000 (21:59 +0100)
commit241c03029d3787497babc6a88d67261b41410044
tree8dc6d5b1b96b6e146b3c97a0be3e050f01da9a6d
parent928560e6f52f1287155ae8deb9e97e5607ec98db
log: flush log lines, to cope with non-terminal output (pipes)

Although log messages are terminated by a line feed, output still might
get buffered when the program does not talk to a terminal (that it is
aware of). Add an fflush(3) call to the printf(3) sequence such that log
output will immediately show up when writing to pipes or sockets, too.
src/log.c