What does EAGAIN mean?

Like the name, what does EAGAIN mean?

+50
c unix posix sockets
Oct 30 '10 at 10:57
source share
4 answers

EAGAIN often occurs when performing non-blocking I / O. This means that "there is no data available right now, please try again later."

It could (or could not ) be the same as EWOULDBLOCK , which means "your thread would have to block in order to do this."

+50
Oct. 30 '10 at 11:01
source share

Using man 2 intro | less -Ip EAGAIN man 2 intro | less -Ip EAGAIN :

  35 EAGAIN Resource temporarily unavailable. This is a temporary condi- tion and later calls to the same routine may complete normally. 
+13
Mar 05 '13 at 15:26
source share

What this means is less important. What does this mean:

  • Your system call failed.
  • nothing happened (system calls are atomic, and it just wasn’t)
  • you can try again (this may fail again, possibly with a different result)
  • or you can choose another.

All about EAGAIN is that your process is not blocked inside a system call; he has the right to choose: either try again, or do something useful.

+4
Mar 05 '15 at 0:59
source share

According to this , this means that the operation will pause the process.

0
Oct 30 '10 at 11:01
source share



All Articles