MINOR: init: make stdout unbuffered

printf is unusable for debugging without this, and printf() is not used
for anything else.
This commit is contained in:
Olivier Houchard 2018-02-03 15:15:21 +01:00 committed by Willy Tarreau
parent e8ade385b4
commit 5fa300da89

View File

@ -2492,6 +2492,7 @@ int main(int argc, char **argv)
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);