From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965693AbXCGWOL (ORCPT ); Wed, 7 Mar 2007 17:14:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965698AbXCGWOL (ORCPT ); Wed, 7 Mar 2007 17:14:11 -0500 Received: from gw.goop.org ([64.81.55.164]:40196 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965693AbXCGWOJ (ORCPT ); Wed, 7 Mar 2007 17:14:09 -0500 Message-ID: <45EF392F.5070101@goop.org> Date: Wed, 07 Mar 2007 14:14:07 -0800 From: Jeremy Fitzhardinge User-Agent: Thunderbird 1.5.0.9 (X11/20070212) MIME-Version: 1.0 To: Davide Libenzi CC: Linus Torvalds , Stephen Rothwell , Linux Kernel Mailing List , Andrew Morton Subject: Re: [patch 1/4] signalfd v1 - signalfd core ... References: <20070307155553.06c82ca1.sfr@canb.auug.org.au> <20070307233833.f1482f86.sfr@canb.auug.org.au> <45EF20F7.1050307@goop.org> <45EF2DFF.4060209@goop.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Davide Libenzi wrote: > You have the *choice* to do that: > > 1) You want standard delivery only: > > - Just dont use signalfd > > 2) you want signalfd only: > > - Do a sigprocmask(SIG_BLOCK) of the same mask you pass to signalfd > > If you want both, you can have it. Race free. > It's only usefully race-free if you are guarantee that each signal gets delivered once, by one path or the other. Otherwise you get a non-deterministic number of each signal actually delivered - what earthly use is that to an application? J