tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: RFC: import of posix_spawn GSoC results



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


Home | Main Index | Thread Index | Old Index