Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you can count on pthreads, you can use pthread_atfork for that.


The problem with that is that a library can't count on pthreads: the application might call clone directly, without going through the libc wrapper, which calls the atfork callbacks.


Very good point; pthread_atfork does not suffice. Thanks for the correction.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: