aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-08-11 18:35:23 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-08-11 18:35:23 +0000
commit1afb6f7470f96aa102896f7cee98d44733c8087f (patch)
tree1c3b81aa6d900a75e4a84944aa1dff3806d6cef8 /driver.c
parent175f28517a60661d089a4380372e626f1bff0e80 (diff)
downloadfetchmail-1afb6f7470f96aa102896f7cee98d44733c8087f.tar.gz
fetchmail-1afb6f7470f96aa102896f7cee98d44733c8087f.tar.bz2
fetchmail-1afb6f7470f96aa102896f7cee98d44733c8087f.zip
Dave Bodenstab's fix for flaky phone lines.
svn path=/trunk/; revision=1260
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 */