aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index 853f5bfa..04d45414 100644
--- a/driver.c
+++ b/driver.c
@@ -1133,7 +1133,14 @@ flag delimited; /* does the protocol use a message delimiter? */
while (delimited || len > 0)
{
if ((linelen = SockRead(sock, buf, sizeof(buf)-1)) == -1)
+ {
+ if (ctl->mda)
+ {
+ pclose(sinkfp);
+ signal(SIGCHLD, sigchld);
+ }
return(PS_SOCKET);
+ }
set_timeout(ctl->server.timeout);
/* write the message size dots */