]> git.eshelyaron.com Git - emacs.git/commitdiff
Add sanity check for checking async DNS
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Feb 2016 02:04:59 +0000 (13:04 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Feb 2016 02:04:59 +0000 (13:04 +1100)
* src/process.c (check_for_dns): Disregard processes that have
already been killed.

src/process.c

index 0c8fc43dd12d0fba7aaeb53ddaf7a685eae9b4c7..b232e3311518a7452e00ba91e6bbc5d3706d853f 100644 (file)
@@ -4602,6 +4602,10 @@ check_for_dns (Lisp_Object proc)
   if (! p->dns_requests)
     return Qnil;
 
+  /* This process should not already be connected (or killed). */
+  if (p->infd != 0)
+    return Qnil;
+
   ret = gai_error (p->dns_requests[0]);
   if (ret == EAI_INPROGRESS)
     return Qt;