3 ms·
> There is no sane way of forking a multithreaded program The sane way of forking a multithreaded process is to exec immediately after.
by lstyls 9y ago
> There is no sane way of forking a multithreaded program
The sane way of forking a multithreaded process is to exec immediately after.
- dom0 9y agoIt is possible to do more after a fork (cf. async-signal-safe), but it's hairy enough to just say — don't, always exec (similar to how doing actual work in a signal handler is generally a very bad idea).