Nonblocking I/O and POLL_BUG

Jonas Luster jonas at qad.org
Tue Oct 26 09:55:39 UTC 1999


[ Quoting Russ Allbery <rra at stanford.edu> ]:

> getting a lot of "cant read: Resource temporarily unavailable" messages in
> my logs, which sounds like EAGAIN on read wasn't being handled correctly.
> When I went looking for that, I saw that what I'd consider to be correct
> handling of EAGAIN (pretend as if the connection had never selected true
> for reading and return to the select loop) was protected by #ifdef
> POLL_BUG.  Looks like that also used to be in config.data for Solaris and
> dates back quite a while.

I'm not very common with it, but wouldn't 'EWOULDBLOCK' be more
portable?

jonas


More information about the inn-workers mailing list