HomeFreeBSD

select: call seltdfini on process and thread exit

Description

select: call seltdfini on process and thread exit

Since thread_zone is marked NOFREE the thread_fini callback is never
executed, meaning memory allocated by seltdinit is never released.

Adding the call to thread_dtor is not sufficient as exiting processes
cache the main thread.

Details

Provenance
mjgAuthored on
Parents
rS367713: select: replace reference counting with memory barriers in selfd
Branches
Unknown
Tags
Unknown