aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
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;
}