git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debug: provide for SIGALRM tracking
[exim.git]
/
src
/
src
/
expand.c
diff --git
a/src/src/expand.c
b/src/src/expand.c
index f32425b3f8bc8fb959ca971f1beb8e6674be97d9..5054e151bb73bf2a593e5046fdb7d4730540168c 100644
(file)
--- a/
src/src/expand.c
+++ b/
src/src/expand.c
@@
-5051,9
+5051,9
@@
while (*s != 0)
server_name = US sockun.sun_path;
sigalrm_seen = FALSE;
server_name = US sockun.sun_path;
sigalrm_seen = FALSE;
-
alarm
(timeout);
+
ALARM
(timeout);
rc = connect(fd, (struct sockaddr *)(&sockun), sizeof(sockun));
rc = connect(fd, (struct sockaddr *)(&sockun), sizeof(sockun));
-
alarm
(0);
+
ALARM_CLR
(0);
if (sigalrm_seen)
{
expand_string_message = US "socket connect timed out";
if (sigalrm_seen)
{
expand_string_message = US "socket connect timed out";
@@
-5126,13
+5126,13
@@
while (*s != 0)
if (!tls_ctx)
fp = fdopen(fd, "rb");
sigalrm_seen = FALSE;
if (!tls_ctx)
fp = fdopen(fd, "rb");
sigalrm_seen = FALSE;
-
alarm
(timeout);
+
ALARM
(timeout);
yield =
#ifdef SUPPORT_TLS
tls_ctx ? cat_file_tls(tls_ctx, yield, sub_arg[3]) :
#endif
cat_file(fp, yield, sub_arg[3]);
yield =
#ifdef SUPPORT_TLS
tls_ctx ? cat_file_tls(tls_ctx, yield, sub_arg[3]) :
#endif
cat_file(fp, yield, sub_arg[3]);
-
alarm
(0);
+
ALARM_CLR
(0);
#ifdef SUPPORT_TLS
if (tls_ctx)
#ifdef SUPPORT_TLS
if (tls_ctx)
@@
-5265,9
+5265,9
@@
while (*s != 0)
resetok = FALSE;
f = fdopen(fd_out, "rb");
sigalrm_seen = FALSE;
resetok = FALSE;
f = fdopen(fd_out, "rb");
sigalrm_seen = FALSE;
-
alarm
(60);
+
ALARM
(60);
lookup_value = string_from_gstring(cat_file(f, NULL, NULL));
lookup_value = string_from_gstring(cat_file(f, NULL, NULL));
-
alarm
(0);
+
ALARM_CLR
(0);
(void)fclose(f);
/* Wait for the process to finish, applying the timeout, and inspect its
(void)fclose(f);
/* Wait for the process to finish, applying the timeout, and inspect its