changeset 29921:8a4552214d84

* process.c (Fopen_network_stream): Turn off atimers for duration of call to connect. (Patch from Gerd.)
author Ken Raeburn <raeburn@raeburn.org>
date Sat, 24 Jun 2000 06:06:53 +0000
parents 106dbd5fec26
children 9473e3466947
files src/ChangeLog src/process.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file src/ChangeLog has changed
--- a/src/process.c	Fri Jun 23 19:37:14 2000 +0000
+++ b/src/process.c	Sat Jun 24 06:06:53 2000 +0000
@@ -1862,7 +1862,16 @@
       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);