views:

91

answers:

2

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
According to IEEE 1003.1, `EAGAIN` may be the same as `EWOULDBLOCK`. http://www.opengroup.org/onlinepubs/000095399/basedefs/errno.h.html
larsmans
@larsman, "may" being the operative word here :)
Frédéric Hamidi
What I mean is: a portable program should not rely on them being distinct.
larsmans
@larsman, yes, you're right.
Frédéric Hamidi
A: 

According to this, it means "Operation would have caused the process to be suspended."

thelost