X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/e30f4f43de211b14bd405a3d0e1579b9bd814908..c2a1bba0d1fe5e19f93c92544422036814695c45:/src/src/ip.c?ds=sidebyside diff --git a/src/src/ip.c b/src/src/ip.c index ef133bf9f..fa688be64 100644 --- a/src/src/ip.c +++ b/src/src/ip.c @@ -243,7 +243,7 @@ timer, thereby allowing the inbuilt OS timeout to operate. */ callout_address = string_sprintf("[%s]:%d", address, port); sigalrm_seen = FALSE; -if (timeout > 0) alarm(timeout); +if (timeout > 0) ALARM(timeout); #if defined(TCP_FASTOPEN) && defined(MSG_FASTOPEN) /* TCP Fast Open, if the system has a cookie from a previous call to @@ -307,7 +307,7 @@ legacy_connect: } save_errno = errno; -alarm(0); +ALARM_CLR(0); /* There is a testing facility for simulating a connection timeout, as I can't think of any other way of doing this. It converts a connection refused