connect. (Patch from Gerd.)
+2000-06-24 Ken Raeburn <raeburn@gnu.org>
+
+ * process.c (Fopen_network_stream): Turn off atimers for duration
+ of call to connect. (Patch from Gerd.)
+
2000-06-23 Dave Love <fx@gnu.org>
* ralloc.c: Maybe include unistd.h
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);