aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-12-07 01:04:27 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-12-07 01:04:27 +0000
commit6a2845a13efa8e77d24df2347b0c2f381b344583 (patch)
tree68977a7330f54ca9da2091f87105298d10e99d03 /fetchmail.c
parent835b4bdb57b474df81432696df9c416dee8205c0 (diff)
downloadfetchmail-6a2845a13efa8e77d24df2347b0c2f381b344583.tar.gz
fetchmail-6a2845a13efa8e77d24df2347b0c2f381b344583.tar.bz2
fetchmail-6a2845a13efa8e77d24df2347b0c2f381b344583.zip
Fix the SIGCLD snafu.
svn path=/trunk/; revision=613
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);