summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-10-22 12:04:53 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2019-10-22 12:04:53 +0200
commitfedd8652be6ba1fa6ef21d9fe9254a2675a92d05 (patch)
tree9719d775655a67a8d7fd6cae80cfb958cbdb703c
parent3da281f531e9db1433ae2b4792a1840ca55b06bf (diff)
Enforce flush at end of lines
Change-Id: I3d3770a165f165cd922bab16b0e259e86865d048 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/main-cynagorad.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main-cynagorad.c b/src/main-cynagorad.c
index 4a90cc0..0af145c 100644
--- a/src/main-cynagorad.c
+++ b/src/main-cynagorad.c
@@ -175,6 +175,9 @@ int main(int ac, char **av)
cyn_server_t *server;
char *spec_socket_admin, *spec_socket_check, *spec_socket_agent;
+ setlinebuf(stdout);
+ setlinebuf(stderr);
+
/* scan arguments */
for (;;) {
opt = getopt_long(ac, av, shortopts, longopts, NULL);