(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 0c9a952..10bfa76 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;