We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poll stdin (FD 0) always return readable (Events::IN) even if no input at all.
Steps to reproduce the behavior:
` /* Watch stdin (fd 0) to see when it has input. */ FD_ZERO(&rfds); FD_SET(0, &rfds);
/* Wait up to five seconds. */ tv.tv_sec = 5; tv.tv_usec = 0;
retval = select(1, &rfds, NULL, NULL, &tv); ` Above code always return immediately.
No IN event if there is no input.
The text was updated successfully, but these errors were encountered:
guzongmin
No branches or pull requests
Describe the bug
Poll stdin (FD 0) always return readable (Events::IN) even if no input at all.
To reproduce
Steps to reproduce the behavior:
`
/* Watch stdin (fd 0) to see when it has input. */
FD_ZERO(&rfds);
FD_SET(0, &rfds);
/* Wait up to five seconds. */
tv.tv_sec = 5;
tv.tv_usec = 0;
retval = select(1, &rfds, NULL, NULL, &tv);
`
Above code always return immediately.
Expected behavior
No IN event if there is no input.
Environment
The text was updated successfully, but these errors were encountered: