From: YAMAMOTO Mitsuharu Date: Tue, 20 Mar 2007 08:51:03 +0000 (+0000) Subject: (Fmake_network_process) [HAVE_GETADDRINFO]: Clear X-Git-Tag: emacs-pretest-22.0.97~272 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=54b3b62f17d5be5ad64d309b72f673dbb5529091;p=emacs.git (Fmake_network_process) [HAVE_GETADDRINFO]: Clear immediate_quit before calling freeaddrinfo. Add BLOCK_INPUT around freeaddrinfo. --- 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;