Bug 196345
Summary: | Ambiguity with select and EAGAIN in select_tut | ||
---|---|---|---|
Product: | Documentation | Reporter: | Sergey Z. (zhurxx) |
Component: | man-pages | Assignee: | documentation_man-pages (documentation_man-pages) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | mtk.manpages |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: |
Description
Sergey Z.
2017-07-12 16:18:38 UTC
Thanks. I changed the text of rule 7 to: 7. Calls to read(2), recv(2), write(2), send(2), and select() can fail with the error EINTR, and calls to read(2), recv(2) write(2), and send(2) can fail with errno set to EAGAIN (EWOULDBLOCK). These results must be properly managed (not done properly above). If your program is not going to receive any signals, then it is unlikely you will get EINTR. If your program does not set nonblocking I/O, you will not get EAGAIN. I'll close this now. If you think something still needs fixing here, please reopen. |