chiark / gitweb /
Support for reverse queries.
[adns.git] / src / event.c
index c156e75f6be20a159c33b4bf42f33f7aa61a5f66..fc8aa81509bffee208bab4f205efdf3376b4ce26 100644 (file)
@@ -5,7 +5,12 @@
  * - user-visible check/wait and event-loop-related functions
  */
 /*
- *  This file is part of adns, which is Copyright (C) 1997-1999 Ian Jackson
+ *  This file is
+ *    Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
+ *
+ *  It is part of adns, which is
+ *    Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
+ *    Copyright (C) 1999 Tony Finch <dot@dotat.at>
  *  
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -525,6 +530,10 @@ int adns_processany(adns_state ads) {
   r= gettimeofday(&now,0);
   if (!r) adns_processtimeouts(ads,&now);
 
+  /* We just use adns__fdevents to loop over the fd's trying them.
+   * This seems more sensible than calling select, since we're most
+   * likely just to want to do a read on one or two fds anyway.
+   */
   npollfds= adns__pollfds(ads,pollfds);
   adns__fdevents(ads,
                 pollfds,npollfds,
@@ -532,7 +541,7 @@ int adns_processany(adns_state ads) {
                 now,&r);
 
   adns__consistency(ads,0,cc_entex);
-  return r;
+  return 0;
 }
 
 void adns__autosys(adns_state ads, struct timeval now) {