authorgravatar for heidezomp@protonmail.comheidezomp <heidezomp@protonmail.com> 2020-10-26 23:59:16+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-11-16 14:03:19-08:00
log9ea4ddae97925ff3a988da8c010e98a3495c1869
treee302a67ba51b8b0910c7167f1de94d45f6e889e4
parenta2582df5b2cbf96823a239624857461fe65433f3

linuxWaitFd: make NetworkSubsystemFailed error unreachable

This error from os.poll is Windows-specific, so unreachable on Linux.

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

lib/std/event/loop.zig+2-1
......@@ -466,8 +466,9 @@ pub const Loop = struct {
466466 .revents = undefined,
467467 }};
468468 _ = os.poll(&pfd, -1) catch |poll_err| switch (poll_err) {
469 error.NetworkSubsystemFailed => unreachable, // only possible on windows
470
469471 error.SystemResources,
470 error.NetworkSubsystemFailed,
471472 error.Unexpected,
472473 => {
473474 // Even poll() didn't work. The best we can do now is sleep for a