Make stdout line-buffered so verbose output is easier to read.

git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@768 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2014-03-06 12:31:31 +00:00
parent 03207fcd61
commit 56f7cf21f5
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ main(int argc, char *argv[])
setlogmask(LOG_UPTO(0));
#endif
/* make stdout line-buffered to preserve ordering */
setvbuf(stdout, NULL, _IOLBF, 0);
/* clean up temp files in case of premature exit */
atexit(t_fcloseall);