execve() and KSE

Daniel Eischen eischen at vigrid.com
Wed May 19 22:16:49 PDT 2004


On Wed, 19 May 2004, Julian Elischer wrote:

> What is supposed to happen is that all the execve should stall awaiting
> all the other kernel threads to abort/suicide and then it should proceed
> with the execve as per normal.
> it is possible this doesn't work right.. I haven't tried ti for a LONG
> time..

The program is bogus also.  First, you can't pass NULL to
pthread_cond_wait() -- check the return values.  Second,
you can't join to a thread that has done an exec() --
the whole process has exec'd.  I think you need to do
this the old fashioned way (fork, exec, wait for child,
etc).

-- 
Dan Eischen



More information about the freebsd-threads mailing list