From 6a2845a13efa8e77d24df2347b0c2f381b344583 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 7 Dec 1996 01:04:27 +0000 Subject: Fix the SIGCLD snafu. svn path=/trunk/; revision=613 --- fetchmail.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fetchmail.c') 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); -- cgit v1.2.3