diff src/process.c @ 76626:2fb8fb4a9bab

(Fmake_network_process) [HAVE_GETADDRINFO]: Clear immediate_quit before calling freeaddrinfo. Add BLOCK_INPUT around freeaddrinfo.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Tue, 20 Mar 2007 08:51:03 +0000
parents f0a25b5d3ba0
children 217f3f19f471 738ce3540ffb c0409ee15cee
line wrap: on
line diff
--- a/src/process.c	Tue Mar 20 08:50:46 2007 +0000
+++ b/src/process.c	Tue Mar 20 08:51:03 2007 +0000
@@ -3336,12 +3336,16 @@
 #endif
     }
 
+  immediate_quit = 0;
+
 #ifdef HAVE_GETADDRINFO
   if (res != &ai)
-    freeaddrinfo (res);
-#endif
-
-  immediate_quit = 0;
+    {
+      BLOCK_INPUT;
+      freeaddrinfo (res);
+      UNBLOCK_INPUT;
+    }
+#endif
 
   /* Discard the unwind protect for closing S, if any.  */
   specpdl_ptr = specpdl + count1;