- 论坛徽章:
- 0
|
- RETURN VALUES
- Upon successful completion, the select() function returns the number of
- ready objects represented by corresponding file descriptor bits in the I/O
- descriptor sets. When an error occurs, -1 is returned and errno is set to
- indicate the error.
- If the time limit expires before any event occurs that would cause one of
- the masks to be set to a non-zero value, select() completes successfully
- and returns 0 (zero).
- When select() returns an error, including a process interrupt, the I/O
- descriptor sets pointed to by the readfds, writefds, and exceptfds parame-
- ters remain unmodified.
复制代码 |
|