From owner-freebsd-hackers@FreeBSD.ORG Wed May 3 12:56:38 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 DC50C16A425 for ; Wed, 3 May 2006 12:56:38 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79AC943D46 for ; Wed, 3 May 2006 12:56:38 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.6/8.13.6/NETPLEX) with ESMTP id k43CubiG026329; Wed, 3 May 2006 08:56:37 -0400 (EDT) Date: Wed, 3 May 2006 08:56:37 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Alin-Adrian Anton In-Reply-To: <44589A77.7070707@spintech.ro> Message-ID: References: <4456A5B3.2010809@spintech.ro> <44579DE0.1050207@spintech.ro> <44589A77.7070707@spintech.ro> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: 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: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 May 2006 12:56:41 -0000 On Wed, 3 May 2006, Alin-Adrian Anton wrote: > Daniel Eischen wrote: >> You are entirely confused. You should go back to the POSIX standard >> and get Dave Butenhof's Programming with POSIX Threads book. >> > [..] > > You are right. All is clear now, i re-read the link twice and played with > sigprocmask vs. pthread_sigmask. It's clear now, also with the help of: > > http://www.opengroup.org/onlinepubs/009695399/functions/sigprocmask.html 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(). -- DE