aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 83ce10ef..a560efbe 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -128,6 +128,9 @@ int main (int argc, char **argv)
if ((parsestatus = parsecmdline(argc,argv,&cmd_opts)) < 0)
exit(PS_SYNTAX);
+ /* this hint to stdio should halp messages come out in the right order */
+ setvbuf(stdout, NULL, _IOLBF, POPBUFSIZE);
+
if (versioninfo)
printf("This is fetchmail release %s pl %s\n", RELEASE_ID, PATCHLEVEL);