From 1afb6f7470f96aa102896f7cee98d44733c8087f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 11 Aug 1997 18:35:23 +0000 Subject: Dave Bodenstab's fix for flaky phone lines. svn path=/trunk/; revision=1260 --- driver.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'driver.c') 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 */ -- cgit v1.2.3