mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 05:48:31 +00:00
linuxWaitFd: make NetworkSubsystemFailed error unreachable
This error from os.poll is Windows-specific, so unreachable on Linux.
This commit is contained in:
parent
a2582df5b2
commit
9ea4ddae97
@ -466,8 +466,9 @@ pub const Loop = struct {
|
||||
.revents = undefined,
|
||||
}};
|
||||
_ = os.poll(&pfd, -1) catch |poll_err| switch (poll_err) {
|
||||
error.NetworkSubsystemFailed => unreachable, // only possible on windows
|
||||
|
||||
error.SystemResources,
|
||||
error.NetworkSubsystemFailed,
|
||||
error.Unexpected,
|
||||
=> {
|
||||
// Even poll() didn't work. The best we can do now is sleep for a
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user