From owner-freebsd-threads@FreeBSD.ORG Wed May 19 22:16:48 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB9C516A4CF; Wed, 19 May 2004 22:16:48 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C89343D54; Wed, 19 May 2004 22:16:48 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i4K5GF8Q023667; Thu, 20 May 2004 01:16:15 -0400 (EDT) Date: Thu, 20 May 2004 01:16:15 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Julian Elischer In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: execve() and KSE X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2004 05:16:49 -0000 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