std/event: fix poll error set handling

This has been broken since 127fa80
This commit is contained in:
Isaac Freund
2020-10-27 21:28:31 +01:00
parent 7c2bde1f07
commit 1b34365ca1

View File

@@ -467,6 +467,7 @@ pub const Loop = struct {
}};
_ = os.poll(&pfd, -1) catch |poll_err| switch (poll_err) {
error.SystemResources,
error.NetworkSubsystemFailed,
error.Unexpected,
=> {
// Even poll() didn't work. The best we can do now is sleep for a