Subject: Re: popen reentrant (was Re: SA/pthread and vfork)
To: Nathan J. Williams <nathanw@wasabisystems.com>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 09/10/2003 22:41:49
On 10 Sep 2003, Nathan J. Williams wrote:

> Again, I think this is the wrong approach. Instead of making vfork()
> work with SAs, we should consider avoiding vfork() in threaded
> programs and taking the hit of calling ordinary fork() instead.

Would it be legal to implement vfork() for a threaded app as a fork +
implicit wait in the parent thread for the child to exit? Those semantics
would be easy to implement in a threaded app context, and would have
reasonable semantics to let other threads keep going.

Take care,

Bill