| author | |
| committer | |
| log | 9ea4ddae97925ff3a988da8c010e98a3495c1869 |
| tree | e302a67ba51b8b0910c7167f1de94d45f6e889e4 |
| parent | a2582df5b2cbf96823a239624857461fe65433f3 |
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 { |
| 466 | 466 | .revents = undefined, |
| 467 | 467 | }}; |
| 468 | 468 | _ = os.poll(&pfd, -1) catch |poll_err| switch (poll_err) { |
| 469 | error.NetworkSubsystemFailed => unreachable, // only possible on windows | |
| 470 | ||
| 469 | 471 | error.SystemResources, |
| 470 | error.NetworkSubsystemFailed, | |
| 471 | 472 | error.Unexpected, |
| 472 | 473 | => { |
| 473 | 474 | // Even poll() didn't work. The best we can do now is sleep for a |