sq_dowrite: 104 ?

Paul Vixie vixie at sa.vix.com
Thu Jun 22 17:03:49 UTC 2006


>  Jun 21 08:48:26 ns1 named[32696]: sq_dowrite: 104
> 
> What is "sq_dowrite: 104" and what is it indicative of?

in bind8/src/bin/named/ns_main.c we see the following fragment:

           int n = write(qs->s_rfd, qs->s_wbuf_send,
                         qs->s_wbuf_free - qs->s_wbuf_send);
           if (n < 0) {
                if (errno != EINTR && errno != EAGAIN
#if (EWOULDBLOCK != EAGAIN)
                    && errno != EWOULDBLOCK
#endif
                     ) {
                        ns_notice(ns_log_default, "sq_dowrite: %d\n", errno);
                        return (-1);
                }
           }

what this is telling you is that write() returned -1 with errno==104.
my /usr/include/errno.h has no "104" in it so you'll have to grep yours.
all we know for sure is that it wasn't EINTR, EAGAIN, or EWOULDBLOCK (if
indeed EWOULDBLOCK isn't just an alias for EAGAIN on your system.)

if we're placing bets, i'd say errno 104 is ENETUNREACH on your system,
or perhaps ECONNRESET, and that your default route is coming and going
due to DHCP or IGP problems.
-- 
Paul Vixie



More information about the bind-users mailing list