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