mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
5ca6914884
commit
b31767bf27
@ -157,6 +157,10 @@ static int select_event_loop_select(struct select_event_context *select_ev, stru
|
|||||||
/* setup any fd events */
|
/* setup any fd events */
|
||||||
for (fde = select_ev->ev->fd_events; fde; fde = fde->next) {
|
for (fde = select_ev->ev->fd_events; fde; fde = fde->next) {
|
||||||
if (fde->fd < 0 || fde->fd >= FD_SETSIZE) {
|
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;
|
errno = EBADF;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user