authorgravatar for timonkruiper@gmail.comTimon Kruiper <timonkruiper@gmail.com> 2020-05-06 15:36:52+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-06 13:14:06-04:00
logb336dda0765ba345253ed4b25113a5db4386c3f0
tree7b0bcdf80b0741e53ac937c797d7d6018a7422f1
parent9c422c28f62cdc5fc2e675318c58b1b3710f0778

Standard library: Fix a regression in loop.waitUntilFdWritableOrReadable

This broke async io on linux. Regressed in 8ebcca6734e07aea29098ca4c63c0216b3099d0e

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/event/loop.zig+1-1
...@@ -493,7 +493,7 @@ pub const Loop = struct {...@@ -493,7 +493,7 @@ pub const Loop = struct {
493 pub fn waitUntilFdWritableOrReadable(self: *Loop, fd: os.fd_t) void {493 pub fn waitUntilFdWritableOrReadable(self: *Loop, fd: os.fd_t) void {
494 switch (builtin.os.tag) {494 switch (builtin.os.tag) {
495 .linux => {495 .linux => {
496 self.linuxWaitFd(@intCast(usize, fd), os.EPOLLET | os.EPOLLONESHOT | os.EPOLLOUT | os.EPOLLIN);496 self.linuxWaitFd(fd, os.EPOLLET | os.EPOLLONESHOT | os.EPOLLOUT | os.EPOLLIN);
497 },497 },
498 .macosx, .freebsd, .netbsd, .dragonfly => {498 .macosx, .freebsd, .netbsd, .dragonfly => {
499 self.bsdWaitKev(@intCast(usize, fd), os.EVFILT_READ, os.EV_ONESHOT);499 self.bsdWaitKev(@intCast(usize, fd), os.EVFILT_READ, os.EV_ONESHOT);