From 54b3b62f17d5be5ad64d309b72f673dbb5529091 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Tue, 20 Mar 2007 08:51:03 +0000 Subject: [PATCH] (Fmake_network_process) [HAVE_GETADDRINFO]: Clear immediate_quit before calling freeaddrinfo. Add BLOCK_INPUT around freeaddrinfo. --- src/process.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/process.c b/src/process.c index 0c9a9527c39..10bfa762a9b 100644 --- a/src/process.c +++ b/src/process.c @@ -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; -- 2.39.5