From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 18 16:34:16 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9B7637B401; Fri, 18 Apr 2003 16:34:16 -0700 (PDT) Received: from snark.ratmir.ru (snark.ratmir.ru [213.24.248.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E5B943FE0; Fri, 18 Apr 2003 16:34:15 -0700 (PDT) (envelope-from alexs@snark.ratmir.ru) Received: from snark.ratmir.ru (alexs@localhost [127.0.0.1]) by snark.ratmir.ru (8.12.9/8.12.9) with ESMTP id h3INYEC2063991; Sat, 19 Apr 2003 03:34:14 +0400 (MSD) (envelope-from alexs@snark.ratmir.ru) Received: (from alexs@localhost) by snark.ratmir.ru (8.12.9/8.12.9/Submit) id h3INYEkR063990; Sat, 19 Apr 2003 03:34:14 +0400 (MSD) Date: Sat, 19 Apr 2003 03:34:14 +0400 From: Alex Semenyaka To: Daniel Eischen Message-ID: <20030418233414.GF3693@snark.ratmir.ru> References: <20030418224522.GA63339@snark.ratmir.ru> <20030418230818.GE3693@snark.ratmir.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030418230818.GE3693@snark.ratmir.ru> User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org cc: Alex Semenyaka cc: David Xu cc: freebsd-threads@freebsd.org Subject: Re: libpthread patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2003 23:34:17 -0000 On Sat, Apr 19, 2003 at 03:08:19AM +0400, Alex Semenyaka wrote: > But are there programs which call signal(SIGCHLD, SIG_IGN) and then trying > to wait()? I supposed that there are no such: suggested behaviour of signal() By the way... I just thought that it might be reasonable to allow user to choose that behaviour on the fly (like he can do it for the malloc(3)). Do anyone have the objections against this way? If there are no ones, I can do the patch that allows to signal() OPTIONALLY set SA_NOCLDWAIT flag if the environment variable (say, NOCHLD_NOWAIT) is set. Thanks again :) SY, Alex