Commit b8c24556 authored by Ken Raeburn's avatar Ken Raeburn
Browse files

* process.c (Fopen_network_stream): Turn off atimers for duration of call to

connect.  (Patch from Gerd.)
parent c69e5fcd
No preview for this file type
......@@ -1862,7 +1862,16 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\
immediate_quit = 1;
/* 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
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)
emacs_close (s);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment