chiark / gitweb /
+ * ands_processany actually does something.
authorian <ian>
Tue, 12 Oct 1999 21:13:03 +0000 (21:13 +0000)
committerian <ian>
Tue, 12 Oct 1999 21:13:03 +0000 (21:13 +0000)
@@ -20,6 +20,7 @@
+  * ands_processany actually does something.

changelog
src/event.c

index f24e3c3548bfc0b5fd23eb991e3cb8c508fb8f17..8925d128bdd8bcde8bb79604311a6e9dbbee6c4e 100644 (file)
--- a/changelog
+++ b/changelog
@@ -20,6 +20,7 @@ adns (0.5) unstable; urgency=medium
   * adns_rr_hostaddr naddrs is -1 on temporary failure (as documented).
   * Reject TXT RRs with no strings.
   * Correct error messages for qname CNAME foo, foo CNAME bar.
+  * ands_processany actually does something.
   * Fixed typos in adns.h.
 
   General improvements:
index 6ddf492a06e5205a3bb8b48140161ea5c8ce2e38..9109469e61389d7219cd143eb1b33ecc8f3f9de0 100644 (file)
@@ -526,7 +526,7 @@ void adns_globalsystemfailure(adns_state ads) {
 }
 
 int adns_processany(adns_state ads) {
-  int r;
+  int r, i;
   struct timeval now;
   struct pollfd pollfds[MAX_POLLFDS];
   int npollfds;
@@ -541,6 +541,7 @@ int adns_processany(adns_state ads) {
    * likely just to want to do a read on one or two fds anyway.
    */
   npollfds= adns__pollfds(ads,pollfds);
+  for (i=0; i<npollfds; i++) pollfds[i].revents= pollfds[i].events;
   adns__fdevents(ads,
                 pollfds,npollfds,
                 0,0,0,0,