On Wed, Dec 28, 2011 at 07:43:39PM +0800, Dennis Ferguson wrote: > It seems that if you vfork() in a threaded process the child fork could as > easily remember that it is operating in a threaded process as the parent > fork must. If vfork() child fork is unsafe, why isn't the parent fork > equally unsafe, and why isn't this an argument that multithreaded programs in > general are unsafe?
fork has similar issues depending on how the threading primitives are implemented and whether all threads are cloned or not. Joerg