libpcap icon indicating copy to clipboard operation
libpcap copied to clipboard

Close the eventfd if we are non-blocking

Open fenner opened this issue 2 years ago • 0 comments

The eventfd is used to break out of a poll() before it times out, used by pcap_breakloop(). If we are non-blocking, then the eventfd is never needed, so we close it. (And open a new eventfd if we switch to blocking).

fenner avatar Jul 01 '22 16:07 fenner