]> code.delx.au - gnu-emacs/commitdiff
(Fmake_network_process) [HAVE_GETADDRINFO]: Clear
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 20 Mar 2007 08:51:03 +0000 (08:51 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 20 Mar 2007 08:51:03 +0000 (08:51 +0000)
immediate_quit before calling freeaddrinfo.  Add BLOCK_INPUT
around freeaddrinfo.

src/process.c

index 0c9a9527c39097f76b6bb6206076c7c368ec5f92..10bfa762a9b073e740ec992db134b01469becaa6 100644 (file)
@@ -3336,13 +3336,17 @@ usage: (make-network-process &rest ARGS)  */)
 #endif
     }
 
+  immediate_quit = 0;
+
 #ifdef HAVE_GETADDRINFO
   if (res != &ai)
-    freeaddrinfo (res);
+    {
+      BLOCK_INPUT;
+      freeaddrinfo (res);
+      UNBLOCK_INPUT;
+    }
 #endif
 
-  immediate_quit = 0;
-
   /* Discard the unwind protect for closing S, if any.  */
   specpdl_ptr = specpdl + count1;