changeset 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 4f322e7c202a
children c53e7d075f1a
files src/process.c
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
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;