From 50e75b3127a23b6e3c49167aab88d4a3012649c4 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Thu, 4 Oct 2012 23:51:45 -0400 Subject: [PATCH] Make sure we're not querying fds that we never polled for in the first place --- src/util/select.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/select.h b/src/util/select.h index 4bf4b87..a0168e3 100644 --- a/src/util/select.h +++ b/src/util/select.h @@ -37,6 +37,7 @@ #include #include #include +#include #include "fatal_assert.h" #include "timestamp.h" @@ -149,6 +150,7 @@ public: const #endif { + assert( FD_ISSET( fd, &all_fds ) ); return FD_ISSET( fd, &read_fds ); } @@ -157,6 +159,7 @@ public: const #endif { + assert( FD_ISSET( fd, &all_fds ) ); return FD_ISSET( fd, &error_fds ); }