diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tevent/tevent_select.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tevent/tevent_select.c b/lib/tevent/tevent_select.c index 24032631f8..d8aeaa7c55 100644 --- a/lib/tevent/tevent_select.c +++ b/lib/tevent/tevent_select.c @@ -157,6 +157,10 @@ static int select_event_loop_select(struct select_event_context *select_ev, stru /* setup any fd events */ for (fde = select_ev->ev->fd_events; fde; fde = fde->next) { if (fde->fd < 0 || fde->fd >= FD_SETSIZE) { + tevent_debug(select_ev->ev, TEVENT_DEBUG_FATAL, + "ERROR: EBADF fd[%d] >= %d " + "select_event_loop_once\n", + fde->fd, FD_SETSIZE); errno = EBADF; return -1; } |