What does EAGAIN mean?

后端 未结 4 629
挽巷
挽巷 2020-12-12 18:56

As in the title what does EAGAIN mean?

4条回答
  •  既然无缘
    2020-12-12 19:35

    What it means is less important. What it implies:

    • your system call failed
    • nothing happened (system calls are atomic, and this one just did not happen)
    • you could try it again (it could fail again, possibly with a different result)
    • or you could choose otherwise.

    The whole thing about EAGAIN is that your process is not blocked inside the system call; it has the right to choose: either retry or do something useful.

提交回复
热议问题