comparison 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
comparison
equal deleted inserted replaced
76625:4f322e7c202a 76626:2fb8fb4a9bab
3334 conv_sockaddr_to_lisp (&sa1, len1)); 3334 conv_sockaddr_to_lisp (&sa1, len1));
3335 } 3335 }
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 {
3342 #endif 3344 BLOCK_INPUT;
3343 3345 freeaddrinfo (res);
3344 immediate_quit = 0; 3346 UNBLOCK_INPUT;
3347 }
3348 #endif
3345 3349
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
3349 /* Unwind bind_polling_period and request_sigio. */ 3353 /* Unwind bind_polling_period and request_sigio. */