Re:Fork() without exec() is dangerous in large programs
by evanj on Wednesday August 17, 2016 @08:05AM
(#12304010)
This is possible, but I find these restrictions to be hard to follow. As soon as you need to call a function, you now need to audit that function to determine that it only calls other async signal safe functions. When you come back to the code to fix a bug six months later, you need to remember these restrictions.
Do this when you must, but it is easy to screw up.
Do this when you must, but it is easy to screw up.