mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
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:
parent
e8ade385b4
commit
5fa300da89
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue