Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created October 1, 2012 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoordhuis/2a677371bfc18cb2ef4b to your computer and use it in GitHub Desktop.
Save bnoordhuis/2a677371bfc18cb2ef4b to your computer and use it in GitHub Desktop.
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