Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
Erin 💽✨ (erincandescent@akko.erincandescent.net)'s status on Monday, 13-May-2024 03:21:25 JSTErin 💽✨ @david_chisnall @ariadne it's a property of both. The library can e.g. spawn a thread, and unless it can ref itself then it's not safe to dlclose it any more (especially since POSIX has no equal to FreeLibraryAndExitThread)
But obviously the app calling dlopen can be trusted as much to call dlclose only when it's ready to do so. At least as much as it can be trusted with any open/close pair, anyway.