Nonblocking I/O and POLL_BUG

Russ Allbery rra at
Tue Oct 26 08:30:40 UTC 1999

Jonas Luster <jonas at> writes:

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

EAGAIN is POSIX, EWOULDBLOCK is old BSD.  Most modern systems define them
to the same value, but pure SysV will have the former and not the latter
in a lot of places.  So in general EWOULDBLOCK is going to be less
portable than EAGAIN except to really ancient BSD systems.

The right thing to do is to check for either of them.

Russ Allbery (rra at         <URL:>

More information about the inn-workers mailing list