aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-10-01 03:05:18 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-10-01 03:05:18 +0000
commit6c6e203193dfb4a32fffd09e45f9cb53a8c4be58 (patch)
tree89d747088eb1d3e5f0e97513cc53c02caed00881 /driver.c
parentc2d9bf6f5b0a8a9143763836c13d046ae26b313b (diff)
downloadfetchmail-6c6e203193dfb4a32fffd09e45f9cb53a8c4be58.tar.gz
fetchmail-6c6e203193dfb4a32fffd09e45f9cb53a8c4be58.tar.bz2
fetchmail-6c6e203193dfb4a32fffd09e45f9cb53a8c4be58.zip
HMH's latest round of fixes.
svn path=/trunk/; revision=3529
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index 19e16a3f..666c4fb8 100644
--- a/driver.c
+++ b/driver.c
@@ -105,12 +105,14 @@ static void cleanup_timeout_handler (int signal) { }
static int cleanupSockClose (int fd)
/* close sockets in maximum CLEANUP_TIMEOUT seconds during cleanup */
{
+ int scerror;
void (*alrmsave)(int);
alrmsave = signal(SIGALRM, cleanup_timeout_handler);
set_timeout(CLEANUP_TIMEOUT);
- SockClose(fd);
+ scerror = SockClose(fd);
set_timeout(0);
signal(SIGALRM, alrmsave);
+ return (scerror);
}
#ifdef KERBEROS_V4