Skip to content
New issue

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

feat: support events is zero for uv_poll #702

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

uudiin
Copy link
Contributor

@uudiin uudiin commented May 15, 2024

As the poll() manual says that events field may be specified as zero, in which case the only events that can be returned in revents are POLLHUP, POLLERR, and POLLNVAL. This patch allows luv to support this call method with events equal zero. When the parameters in the lua is an empty string, it means that events is zero.

As the poll() manual says that events field may be specified as
zero, in which case the only events that can be returned in revents
are POLLHUP, POLLERR, and POLLNVAL.  This patch allows luv to support
this call method with events equal zero. When the parameters in the
lua is an empty string, it means that events is zero.

Signed-off-by: Tianjia Zhang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant