mirror of
https://github.com/bol-van/zapret.git
synced 2025-08-10 01:02:03 +03:00
nfqws,tpws: always use line buffering for console IO
Forces stdout and stderr to always use line buffering. Note that glibc does automatically flush on newline iff connected to a terminal, but that is not the case when running under systemd. See also https://www.gnu.org/software/libc/manual/html_node/Buffering-Concepts.html https://www.gnu.org/software/libc/manual/html_node/Controlling-Buffering.html
This commit is contained in:
@@ -1755,8 +1755,6 @@ int event_loop(const int *listen_fd, size_t listen_fd_ct)
|
||||
// at least one leg was removed. recount legs
|
||||
print_legs();
|
||||
}
|
||||
|
||||
fflush(stderr); fflush(stdout); // for console messages
|
||||
}
|
||||
|
||||
ex:
|
||||
|
Reference in New Issue
Block a user