Make log messages line buffered

This commit is contained in:
Christopher Wellons 2019-02-03 08:18:55 -05:00
parent 112e5b303f
commit 94aa40778c

View File

@ -253,7 +253,8 @@ main(int argc, char **argv)
port = tmp; port = tmp;
break; break;
case 'v': case 'v':
loglevel++; if (!loglevel++)
setvbuf(stdout, 0, _IOLBF, 0);
break; break;
default: default:
usage(stderr); usage(stderr);