From owner-freebsd-hackers@FreeBSD.ORG Thu May 4 05:45:34 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 331B816A409; Thu, 4 May 2006 05:45:34 +0000 (UTC) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6317243D6B; Thu, 4 May 2006 05:45:26 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from qlovarnika.bg.datamax (qlovarnika.bg.datamax [192.168.10.2]) by jengal.datamax.bg (Postfix) with SMTP id D8362B859; Thu, 4 May 2006 08:45:24 +0300 (EEST) Received: (nullmailer pid 5062 invoked by uid 1002); Thu, 04 May 2006 05:45:24 -0000 Date: Thu, 4 May 2006 08:45:24 +0300 From: Vasil Dimov To: Alin-Adrian Anton Message-ID: <20060504054524.GA5017@qlovarnika.bg.datamax> References: <4456A5B3.2010809@spintech.ro> <44579DE0.1050207@spintech.ro> <44589A77.7070707@spintech.ro> <44590A59.7000307@spintech.ro> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline In-Reply-To: <44590A59.7000307@spintech.ro> X-OS: FreeBSD 6.0-STABLE User-Agent: Mutt/1.5.11 Cc: Daniel Eischen , freebsd-hackers@freebsd.org Subject: Re: which running thread gests the external signal X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 May 2006 05:45:34 -0000 --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 03, 2006 at 10:54:01PM +0300, Alin-Adrian Anton wrote: > Daniel Eischen wrote: > [..] > > > >Note that sigprocmask() and pthread_sigprocmask() are equivalent. I > >don't even think pthread_sigprocmask() is in the standard any longer > >(it used to be in an older version of the standard). New applications > >should be using sigprocmask(). > > >=20 > Yes I noticed. However, this just happens to be the implementation=20 > (probably pthread_sigmask is a wrapper to sigprocmask). >=20 > This might not be the case on other OS, so for portability I'll stick to= =20 > the pthread_sigmask in threads, and sigprocmask in single threaded apps. >=20 For portability you should stick to the standards. Good luck! --=20 Vasil Dimov gro.DSBeerF@dv Testing can show the presence of bugs, but not their absence. -- Edsger W. Dijkstra --opJtzjQTFsWo+cga Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iD8DBQFEWZT0Fw6SP/bBpCARAgzMAKCb1fHbPdNmPO/asXRzFhUrit1BgwCfeo1H 4qOUbZEBhxdib/X1u9CwK68= =LFZp -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga--