diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-02-28 14:43:55 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-03-01 12:00:03 -0800 |
commit | b31767bf27bafd3ae20ba3f26dd5001051b9f2b6 (patch) | |
tree | 2e6507b7503e051287069937d308b6a222fdc71a /lib/tevent | |
parent | 5ca69148844e2f8940b571aef0812e85e08b7cc5 (diff) | |
download | samba-b31767bf27bafd3ae20ba3f26dd5001051b9f2b6.tar.gz samba-b31767bf27bafd3ae20ba3f26dd5001051b9f2b6.tar.bz2 samba-b31767bf27bafd3ae20ba3f26dd5001051b9f2b6.zip |
tevent: debug a FATAL message on EBADF from the select backend
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/tevent')
-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; } |