aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2007-03-20 08:51:03 +0000
committerYAMAMOTO Mitsuharu2007-03-20 08:51:03 +0000
commit54b3b62f17d5be5ad64d309b72f673dbb5529091 (patch)
treea1fee00a92fe97077f47c7014dea8962a2abf8a5 /src
parentf9467be322ba4f9af91aa3f8fe9b0aab865f5459 (diff)
downloademacs-54b3b62f17d5be5ad64d309b72f673dbb5529091.tar.gz
emacs-54b3b62f17d5be5ad64d309b72f673dbb5529091.zip
(Fmake_network_process) [HAVE_GETADDRINFO]: Clear
immediate_quit before calling freeaddrinfo. Add BLOCK_INPUT around freeaddrinfo.
Diffstat (limited to 'src')
-rw-r--r--src/process.c10
1 files 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) */)
3336#endif 3336#endif
3337 } 3337 }
3338 3338
3339 immediate_quit = 0;
3340
3339#ifdef HAVE_GETADDRINFO 3341#ifdef HAVE_GETADDRINFO
3340 if (res != &ai) 3342 if (res != &ai)
3341 freeaddrinfo (res); 3343 {
3344 BLOCK_INPUT;
3345 freeaddrinfo (res);
3346 UNBLOCK_INPUT;
3347 }
3342#endif 3348#endif
3343 3349
3344 immediate_quit = 0;
3345
3346 /* Discard the unwind protect for closing S, if any. */ 3350 /* Discard the unwind protect for closing S, if any. */
3347 specpdl_ptr = specpdl + count1; 3351 specpdl_ptr = specpdl + count1;
3348 3352