From b8c2455611f3245dffeb3e2230d8a3d101fd0323 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 24 Jun 2000 06:06:53 +0000 Subject: [PATCH] * process.c (Fopen_network_stream): Turn off atimers for duration of call to connect. (Patch from Gerd.) --- src/ChangeLog | 5 +++++ src/process.c | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 40baf532ef9..3681d3dddae 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2000-06-24 Ken Raeburn + + * process.c (Fopen_network_stream): Turn off atimers for duration + of call to connect. (Patch from Gerd.) + 2000-06-23 Dave Love * ralloc.c: Maybe include unistd.h diff --git a/src/process.c b/src/process.c index 6972ba0c255..26f3f5e429a 100644 --- a/src/process.c +++ b/src/process.c @@ -1862,7 +1862,16 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\ immediate_quit = 1; QUIT; + /* This turns off all alarm-based interrupts; the + bind_polling_period call above doesn't always turn all the + short-interval ones off, especially if interrupt_input is + set. + + It'd be nice to be able to control the connect timeout + though. Would non-blocking connect calls be portable? */ + turn_on_atimers (0); ret = connect (s, lres->ai_addr, lres->ai_addrlen); + turn_on_atimers (1); if (ret == 0) break; emacs_close (s); -- 2.39.2