-
-
Save bnoordhuis/2a677371bfc18cb2ef4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/deps/uv/src/unix/poll.c b/deps/uv/src/unix/poll.c | |
index 13796ab..cce7581 100644 | |
--- a/deps/uv/src/unix/poll.c | |
+++ b/deps/uv/src/unix/poll.c | |
@@ -31,6 +31,7 @@ static void uv__poll_io(uv_loop_t* loop, uv__io_t* w, int events) { | |
uv_poll_t* handle; | |
int pevents; | |
+ assert(events & (UV__IO_READ|UV__IO_WRITE|UV__IO_ERROR)); | |
handle = container_of(w, uv_poll_t, io_watcher); | |
if (events & UV__IO_ERROR) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment