What does EAGAIN mean?

David van Dugteren picture David van Dugteren · Oct 30, 2010 · Viewed 71.8k times · Source

As in the title what does EAGAIN mean?

Answer

Frédéric Hamidi picture Frédéric Hamidi · Oct 30, 2010

EAGAIN is often raised when performing non-blocking I/O. It means "there is 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".