send header before other messages

This commit is contained in:
prx 2021-04-30 12:45:34 +02:00
parent f8aff7fe05
commit 843d1f0ab7

View file

@ -83,6 +83,8 @@ errlog(const char *format, ...)
char e[1024] = {'\0'};
va_list ap;
fflush(stdout); /* make sure older messages are printed */
va_start(ap, format);
vsnprintf(e, sizeof(e), format, ap);
va_end(ap);