Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 29 Sep 2002 04:15:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 29 Sep 2002 04:15:16 -0400 Received: from mx1.elte.hu ([157.181.1.137]:27553 "HELO mx1.elte.hu") by vger.kernel.org with SMTP id ; Sun, 29 Sep 2002 04:15:15 -0400 Date: Sun, 29 Sep 2002 10:25:16 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Axel Cc: NPT library mailing list , Subject: Re: 2.5.39: Signal delivery to thread groups: Bug or feature In-Reply-To: <200209281638.g8SGcQi23877@mx1.redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1157 Lines: 26 On Sat, 28 Sep 2002, Axel wrote: > I played a little bit with the new clone flags and wrote a small test > program using two threads: The first (initial) thread blocks all > signals. The second thread is created with all signals blocked and > inherits the signal mask of the initial thread. It unblocks SIGINT and > calls sys_rt_sigtimedwait with the remaining signal mask. Therefore it > waits for all signals with exception of SIGINT. In the kernel this > yields to an empty signal mask for this thread during the sigwait. No > signal handler is installed by the process. Now an external SIGINT is > delivered to the whole process: The signal delivery code decides to send > this signal directly to the initial thread because no user handler is > installed and the signal mask for this thread blocks the signal. The > second thread never receives the SIGINT. could you send me the testcase? Thanks, Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/