News for hackers. Stuff that matters.
Re:Fork() without exec() is dangerous in large programs (2016) by agwa on Tuesday June 14, 2022 @04:57PM (#31745972)
pthread_atfork functions aren't called if the application calls the clone syscall directly. The right solution is MADV_WIPEONFORK on Linux, or MINHERIT_ZERO on OpenBSD:

https://www.metzdowd.com/pipermail/cryptography/2017-Novembe...

Re:Fork() without exec() is dangerous in large programs (2016) by cryptonector on Tuesday June 14, 2022 @05:21PM (#31746250)
That helps with memory mappings, but it doesn't help with file descriptors -- you still have to be careful with those.