Standard library: Fix a regression in loop.waitUntilFdWritableOrReadable

This broke async io on linux.
Regressed in 8ebcca6734
master
Timon Kruiper 2020-05-06 15:36:52 +02:00 committed by Andrew Kelley
parent 9c422c28f6
commit b336dda076
1 changed files with 1 additions and 1 deletions

View File

@ -493,7 +493,7 @@ pub const Loop = struct {
pub fn waitUntilFdWritableOrReadable(self: *Loop, fd: os.fd_t) void {
switch (builtin.os.tag) {
.linux => {
self.linuxWaitFd(@intCast(usize, fd), os.EPOLLET | os.EPOLLONESHOT | os.EPOLLOUT | os.EPOLLIN);
self.linuxWaitFd(fd, os.EPOLLET | os.EPOLLONESHOT | os.EPOLLOUT | os.EPOLLIN);
},
.macosx, .freebsd, .netbsd, .dragonfly => {
self.bsdWaitKev(@intCast(usize, fd), os.EVFILT_READ, os.EV_ONESHOT);