]> git.eshelyaron.com Git - emacs.git/commitdiff
Backport 2010-03-25T08:56:15Z!mituharu@math.s.chiba-u.ac.jp from trunk
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Thu, 4 Nov 2010 19:54:14 +0000 (15:54 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 4 Nov 2010 19:54:14 +0000 (15:54 -0400)
src/ChangeLog
src/process.c

index f3bbfe05dac032cc3de2a433c470eed202a5bad5..1420114ea5bb0b62f45e7f8f3522f2c2f1b12b36 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * process.c (Fmake_network_process): Don't call turn_on_atimers around
+       `connect' (Bug#5723).
+
 2010-03-25  Helmut Eller  <eller.helmut@gmail.com>
 
        * process.c (Fmake_network_process): Call `select' for interrupted
index 77490adaa79052f96984800a8284cb0ddecfeeb7..e3622c7938640be5a26138ef8d6bfa6907394fd6 100644 (file)
@@ -3654,23 +3654,9 @@ usage: (make-network-process &rest ARGS)  */)
       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?
-
-        This used to be conditioned by HAVE_GETADDRINFO.  Why?  */
-
-      turn_on_atimers (0);
-
       ret = connect (s, lres->ai_addr, lres->ai_addrlen);
       xerrno = errno;
 
-      turn_on_atimers (1);
-
       if (ret == 0 || xerrno == EISCONN)
        {
          /* The unwind-protect will be discarded afterwards.