authorgravatar for mail@isaacfreund.comIsaac Freund <mail@isaacfreund.com> 2020-10-27 21:28:31+01:00
committergravatar for mail@isaacfreund.comIsaac Freund <mail@isaacfreund.com> 2020-10-27 21:28:31+01:00
log1b34365ca1f7222a82054ece1901ffb87ffc8b21
tree82a45f79863b5a204df647037456d61541698cc6
parent7c2bde1f07f5e672bb2320c517568dab9edab652
signaturelock-open Commit is signed but in an unrecognized format.

std/event: fix poll error set handling

This has been broken since 127fa80

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

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