by xroche · 10y ago · 0 comments
Typically calls such as malloc(), printf() etc. are strictly forbidden in the child after a fork().
This post does the best job explaining the issue: http://www.linuxprogrammingblog.com/threads-and-fork-think-t...
Do this when you must, but it is easy to screw up.