commit | 5fa300da8990d5ba4c5902df2496edb7aec7ab59 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Sat Feb 03 15:15:21 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Feb 05 14:15:20 2018 +0100 |
tree | 8b8498072b8ea01c2bea6bea456fa7ad6a6cf554 | |
parent | e8ade385b4080caebeac38a8638394ae7ee9a5b7 [diff] |
MINOR: init: make stdout unbuffered printf is unusable for debugging without this, and printf() is not used for anything else.
diff --git a/src/haproxy.c b/src/haproxy.c index f1a2fb9..67df6cd 100644 --- a/src/haproxy.c +++ b/src/haproxy.c
@@ -2492,6 +2492,7 @@ char errmsg[100]; int pidfd = -1; + setvbuf(stdout, NULL, _IONBF, 0); init(argc, argv); signal_register_fct(SIGQUIT, dump, SIGQUIT); signal_register_fct(SIGUSR1, sig_soft_stop, SIGUSR1);