aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-10-27 21:28:31 +0100
committerIsaac Freund <ifreund@ifreund.xyz>2020-10-27 21:28:31 +0100
commit1b34365ca1f7222a82054ece1901ffb87ffc8b21 (patch)
tree82a45f79863b5a204df647037456d61541698cc6 /lib/std
parent7c2bde1f07f5e672bb2320c517568dab9edab652 (diff)
downloadzig-1b34365ca1f7222a82054ece1901ffb87ffc8b21.tar.gz
zig-1b34365ca1f7222a82054ece1901ffb87ffc8b21.zip
std/event: fix poll error set handling
This has been broken since 127fa80
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/event/loop.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/event/loop.zig b/lib/std/event/loop.zig
index 80dc94d184..0c4895b895 100644
--- a/lib/std/event/loop.zig
+++ b/lib/std/event/loop.zig
@@ -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