tcpdump mailing list archives
Re: Should applications close pcap_get_selectable_fd()?
From: "Mark Delany" <fzx () xray emu st>
Date: Fri, 14 Aug 2026 09:55:30 +1000
On 13Aug26, Guy Harris apparently wrote:
it could be, but is not guaranteed to be, the same file descriptor
Exactly my thoughts. We don't know anything about the relationship and shouldn't assume otherwise.
It should probably just say "don't do anything with this descriptor other than handing it to sele> ct()/poll()/epoll()/some kqueue/whatever...
Either works for me. What would you say about pcap_fileno() as the manpage currently implies pretty tight coupling?
Please file an issue on this at https://github.com/the-tcpdump-group/libpcap/issues to serve as a reminder. (And if you have a change to the manual page that you'd like to suggest, feel free to file a pull request.)
Will do (at least for one of those). Mark. _______________________________________________ tcpdump-workers mailing list -- tcpdump-workers () lists tcpdump org To unsubscribe send an email to tcpdump-workers-leave () lists tcpdump org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
Current thread:
- Should applications close pcap_get_selectable_fd()? Mark Delany (Aug 13)
- Re: Should applications close pcap_get_selectable_fd()? Guy Harris (Aug 13)
- Re: Should applications close pcap_get_selectable_fd()? Guy Harris (Aug 13)
- Re: Should applications close pcap_get_selectable_fd()? Mark Delany (Aug 13)
- Re: Should applications close pcap_get_selectable_fd()? Michael Richardson (Aug 14)
- Re: Should applications close pcap_get_selectable_fd()? Guy Harris (Aug 13)
