From owner-freebsd-threads@FreeBSD.ORG Mon Jun 21 12:30:58 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 C92F116A4CE; Mon, 21 Jun 2004 12:30:58 +0000 (GMT) Received: from smarthost.enta.net (smarthost.enta.net [195.74.97.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 868EE43D1F; Mon, 21 Jun 2004 12:30:58 +0000 (GMT) (envelope-from jacs@gnome.co.uk) Received: from smartsmtp.enta.net (smtp.enta.net [195.74.97.230]) by smarthost.enta.net (Postfix) with ESMTP id 8240F17DB; Mon, 21 Jun 2004 13:34:20 +0100 (BST) Received: from smtp.enta.net (localhost [127.0.0.1]) by smartsmtp.enta.net (8.12.3/8.12.3) with ESMTP id i5LCmNl9089013; Mon, 21 Jun 2004 13:48:24 +0100 (BST) (envelope-from jacs@gnome.co.uk) Received: from hawk.gnome.co.uk (81-31-113-153.adsl.entanet.co.uk [81.31.113.153]) by smtp.enta.net (Postfix) with SMTP id 399B89681E; Mon, 21 Jun 2004 13:48:23 +0100 (BST) Received: from kite (kite.gnome.co.uk [192.168.123.75]) by hawk.gnome.co.uk (8.12.10/8.12.10) with SMTP id i5LCUht1005584; Mon, 21 Jun 2004 13:30:43 +0100 (BST) (envelope-from jacs@gnome.co.uk) Message-ID: <011f01c4578b$923d7b70$4b7ba8c0@gnome.co.uk> From: "Chris Stenton" To: Date: Mon, 21 Jun 2004 13:30:43 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Scanned-By: MIMEDefang 2.43 cc: hackers@freebsd.org Subject: pthread - fork - execv problem 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: Mon, 21 Jun 2004 12:30:58 -0000 I am trying to help port over an app thats posix threaded. One thread uses fork,dup2 and execv to start a child programme in this case an mp3 player. However, under FreeBSD-5.2.1, the execv causes all the threads in the parent process to be blocked until the child process returns. Is there a mechanism to get around this. Thanks Chris