1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

io.c (novl_wait_for_single_fd): VM_UNREACHABLE instead of assert

This respects VM_CHECK_MODE and is more consistent with
the rest of our code.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2018-11-18 01:37:46 +00:00
parent e4c9a70c96
commit b5bb5ed0db

2
io.c
View file

@ -10725,7 +10725,7 @@ nogvl_wait_for_single_fd(int fd, short events)
ret = rb_fd_select(fd + 1, 0, &fds, 0, 0);
break;
default:
assert(0 && "not supported yet, should never get here");
VM_UNREACHABLE(nogvl_wait_for_single_fd);
}
rb_fd_term(&fds);