Date: Thu, 20 May 2004 01:16:15 -0400 (EDT) From: Daniel Eischen <eischen@vigrid.com> To: Julian Elischer <julian@elischer.org> Cc: threads@freebsd.org Subject: Re: execve() and KSE Message-ID: <Pine.GSO.4.10.10405200111150.20696-100000@pcnet5.pcnet.com> In-Reply-To: <Pine.BSF.4.21.0405192113200.11004-100000@InterJet.elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10405200111150.20696-100000>