dankamongmen / libnetstack

Small library around rtnetlink to track networking stack elements
https://nick-black.com/dankwiki/index.php/Libnetstack
Apache License 2.0
10 stars 0 forks source link

don't launch threads if there are no subscriptions #56

Open dankamongmen opened 1 year ago

dankamongmen commented 1 year ago

if there are no subscriptions in the creation options (i.e. we're a one-and-done), we shouldn't be launching any threads. ideally we wouldn't launch them at all, but if that's not reasonable with how things are set up, we at least need to reap them at the end of netstack_create(). things can otherwise get very annoying for client programs wrt cgroups etc.