mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 21:38:33 +00:00
Standard library: Fix a regression in loop.waitUntilFdWritableOrReadable
This broke async io on linux. Regressed in 8ebcca6734e07aea29098ca4c63c0216b3099d0e
This commit is contained in:
parent
9c422c28f6
commit
b336dda076
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user