As in the title what does EAGAIN mean?
+2
A:
EAGAIN is often raised when performing non-blocking I/O. It means "there's no data available right now, try again later".
It might (or might not) be the same as EWOULDBLOCK
, which means "your thread would have to block in order to do that".
Frédéric Hamidi
2010-10-30 11:01:07
According to IEEE 1003.1, `EAGAIN` may be the same as `EWOULDBLOCK`. http://www.opengroup.org/onlinepubs/000095399/basedefs/errno.h.html
larsmans
2010-10-30 11:09:13
@larsman, "may" being the operative word here :)
Frédéric Hamidi
2010-10-30 11:11:13
What I mean is: a portable program should not rely on them being distinct.
larsmans
2010-10-30 11:12:54
@larsman, yes, you're right.
Frédéric Hamidi
2010-10-30 11:16:09