Subject: Re: popen reentrant (was Re: SA/pthread and vfork)
To: Nathan J. Williams <nathanw@wasabisystems.com>
From: Greywolf <greywolf@starwolf.com>
List: tech-kern
Date: 09/11/2003 18:22:34
Thus spake Nathan J. Williams ("NJW> ") sometime Today...

NJW> Well, exec() replaces the entire process image, so calling it from a
NJW> threaded process nukes the other threads and what they are doing. It's
NJW> true that many, many uses of fork()+exec() have better ways to be
NJW> accomplished in a threaded program, but sometimes you really *do* want
NJW> to start another process, not another thread.

D'OH.  That answered a couple questions...

...is there any way that there might be a pthread_exec() call?
Or is this completely defeating the purpose of threading?

NJW>         - Nathan


				--*greywolf;
--
"Windows/NT - From the people who brought you EDLIN".