1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-18 06:04:06 +03:00

ctdb-common: Use pcap_get_selectable_fd()

This is preferred because it will fail for devices that do not support
epoll_wait() and similar.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2022-08-11 09:00:25 +10:00 committed by Amitay Isaacs
parent 40380a8042
commit 075414dc05

View File

@ -981,7 +981,7 @@ int ctdb_sys_open_capture_socket(const char *iface, void **private_data)
}
*((pcap_t **)private_data) = pt;
return pcap_fileno(pt);
return pcap_get_selectable_fd(pt);
}
int ctdb_sys_close_capture_socket(void *private_data)