mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
accept RB_WAITFD_IN | RB_WAITFD_OUT for waiting events
Assrsion was `events == RB_WAITFD_IN || events == RB_WAITFD_OUT` but it should accept `RB_WAITFD_IN | RB_WAITFD_OUT`.
This commit is contained in:
parent
0fef890b4f
commit
541371e286
2
thread.c
2
thread.c
@ -1706,7 +1706,7 @@ thread_io_wait_events(rb_thread_t *th, rb_execution_context_t *ec, int fd, int e
|
||||
prel = NULL;
|
||||
}
|
||||
|
||||
VM_ASSERT(prel || events == RB_WAITFD_IN || events == RB_WAITFD_OUT);
|
||||
VM_ASSERT(prel || (events & (RB_WAITFD_IN | RB_WAITFD_OUT)));
|
||||
|
||||
thread_io_setup_wfd(th, fd, wfd);
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user