From 4a541fc36713166d7b2d47c7285cc3612d5708ad Mon Sep 17 00:00:00 2001 From: david Date: Thu, 5 Apr 2012 01:37:59 +0000 Subject: [PATCH] Add an assert that I am currently able to make fail. --- nsock/src/engine_select.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nsock/src/engine_select.c b/nsock/src/engine_select.c index 69315b117..ee222d45d 100644 --- a/nsock/src/engine_select.c +++ b/nsock/src/engine_select.c @@ -376,6 +376,8 @@ void iterate_through_event_lists(mspool *nsp) { #endif sd = nsi->sd; + assert(sd >= 0); + if (FD_ISSET(sd, &sinfo->fds_results_r)) evmask |= EV_READ; if (FD_ISSET(sd, &sinfo->fds_results_w))