aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-02-05 13:04:59 +1100
committerLars Ingebrigtsen2016-02-05 13:04:59 +1100
commite4c58cf3feb853f2808204e85529d9365b31a6b4 (patch)
tree62be4e6d7bde04298a752f412e22bf59403c9be8 /src/process.c
parent894e21df1e1a38244ad0c8179adf4b632b25a592 (diff)
downloademacs-e4c58cf3feb853f2808204e85529d9365b31a6b4.tar.gz
emacs-e4c58cf3feb853f2808204e85529d9365b31a6b4.zip
Add sanity check for checking async DNS
* src/process.c (check_for_dns): Disregard processes that have already been killed.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c
index 0c8fc43dd12..b232e331151 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4602,6 +4602,10 @@ check_for_dns (Lisp_Object proc)
4602 if (! p->dns_requests) 4602 if (! p->dns_requests)
4603 return Qnil; 4603 return Qnil;
4604 4604
4605 /* This process should not already be connected (or killed). */
4606 if (p->infd != 0)
4607 return Qnil;
4608
4605 ret = gai_error (p->dns_requests[0]); 4609 ret = gai_error (p->dns_requests[0]);
4606 if (ret == EAI_INPROGRESS) 4610 if (ret == EAI_INPROGRESS)
4607 return Qt; 4611 return Qt;