vfork instead of fork for fork+exec?

Christos Zoulas christos at zoulas.com
Sat May 16 12:52:46 PDT 2009


On May 16, 11:06pm, dms at samersoff.net (Dmitry Samersoff) wrote:
-- Subject: Re: vfork instead of fork for fork+exec?

| Christos,
| 
| What does vfork() do with other threads? Does it stops it also ?

It has to, otherwise it cannot work properly.

| What happens with mutexes - does the child inherit it?

mutexes are just memory locations; the child process shares
memory with the parent before it execs.

I can imagine that the above is not true for some weirder implementations.

christos



More information about the bsd-port-dev mailing list