Open uudiin opened 6 months ago
LGTM, please @squeek502 give suggestion
I'm not sure the changes in this PR would have the intended effect judging by the Libuv implementation of uv_poll_start
. In both win
and unix
implementations, events == 0
is an early return:
Other minor things:
Please rebase, wait CI pass to merge the PR.
I don't think this should be merged until it's proven that passing
0
for events has the intended effect.
sure
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.