LibBSD | kqueue: the hold is still leaked when fget() fails, and closefp() drops the wrong descriptor's knotes (#102)

Sang Woo Kim (@physwkim) gitlab at rtems.org
Wed Jul 29 17:45:01 UTC 2026




Sang Woo Kim commented: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/work_items/102#note_155844


The fix is commit 2 of !153 ("rtemsbsd/kqueue: Release the hold taken on a registered descriptor"), with the `kqueueclose01` testsuite case: it registers a socket in a kqueue, closes it, and checks the peer sees the close — on the unfixed branch the close never completes. The MR targets `7-freebsd-14` as requested.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/work_items/102#note_155844
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-27vqlsxyqhz201ay2l92h4val-k/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260729/51947cf9/attachment.htm>


More information about the bugs mailing list