aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-04-09 00:04:05 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-04-09 00:04:05 +0000
commit4be6b90403ad4e3f1dd4da297291eb1bf301bebc (patch)
treec37265b02a99e0214ad0b7762d231420668508b4 /driver.c
parentbbdaf249178f0c5aac2de15df38023bb87e9a0ce (diff)
downloadfetchmail-4be6b90403ad4e3f1dd4da297291eb1bf301bebc.tar.gz
fetchmail-4be6b90403ad4e3f1dd4da297291eb1bf301bebc.tar.bz2
fetchmail-4be6b90403ad4e3f1dd4da297291eb1bf301bebc.zip
Various cleanup patches.
svn path=/trunk/; revision=3612
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index b11d7536..2eda23ef 100644
--- a/driver.c
+++ b/driver.c
@@ -25,6 +25,9 @@
#endif
#include <sys/time.h>
#include <signal.h>
+#ifdef HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
#ifdef HAVE_NET_SOCKET_H
#include <net/socket.h>
@@ -753,6 +756,7 @@ const int maxfetch; /* maximum number of messages to fetch */
signal(SIGPIPE, SIG_IGN);
report(stdout,
GT_("SIGPIPE thrown from an MDA or a stream socket error\n"));
+ wait(0);
err = PS_SOCKET;
goto cleanUp;
}