From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24122 invoked by alias); 14 Aug 2017 08:36:15 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 17249 invoked by uid 89); 14 Aug 2017 08:36:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Houder, houder, receipt, H*F:D*nl X-HELO: lb3-smtp-cloud8.xs4all.net Received: from lb3-smtp-cloud8.xs4all.net (HELO lb3-smtp-cloud8.xs4all.net) (194.109.24.29) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 14 Aug 2017 08:35:59 +0000 Received: from webmail.xs4all.nl ([IPv6:2001:888:0:22:194:109:20:205]) by smtp-cloud8.xs4all.net with ESMTPA id hAqpdidFncQyLhAqpdCrww; Mon, 14 Aug 2017 10:35:55 +0200 Received: from a83-162-234-136.adsl.xs4all.nl ([83.162.234.136]) by webmail.xs4all.nl with HTTP (HTTP/1.1 POST); Mon, 14 Aug 2017 10:35:55 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 14 Aug 2017 08:36:00 -0000 From: Houder To: cygwin@cygwin.com Subject: Re: Signal delivered while blocked (2) In-Reply-To: <8f7f7f8ae098c1321f608645c750cae4@smtp-cloud7.xs4all.net> References: <20170804074445.GB3154757@rfd.leadboat.com> <8f7f7f8ae098c1321f608645c750cae4@smtp-cloud7.xs4all.net> Message-ID: <3b48072dd1f4f1931dd7bb8b4bfc701b@xs4all.nl> X-Sender: houder@xs4all.nl User-Agent: XS4ALL Webmail X-CMAE-Envelope: MS4wfAp/QSKKJPUtjRIBLaGPKkc6n4MkkP56r42RzOzWMiMMwoYBRyUBWupM/MKfjK2LReY192vbaIIyHdHt42EPlD/V9IRWOG4bgqZ3pAubndzyXK6M0rPb hLgBP5vBlkcrHrXH+nvOPhOaxfLLmnjtcWaLrRevC9HwN7CFLx3fPUOIyoU77lqFle8RKKNboubTOS1H2yFYyds8+1Ex7mlM0hM= X-SW-Source: 2017-08/txt/msg00126.txt.bz2 On 2017-08-14 08:03, Houder wrote: > On Fri, 4 Aug 2017 00:44:45, Noah Misch wrote: >> --UugvWAfsgieZRqgk >> Content-Type: text/plain; charset=us-ascii >> Content-Disposition: inline >> >> The attached demonstration program blocks signals (with sigprocmask()) >> to >> achieve mutual exclusion between signal handlers. It aborts upon >> receipt of a >> blocked signal. On "CYGWIN_NT-10.0 2.7.0(0.306/5/3) 2017-02-12 13:18 >> x86_64", >> signals regularly arrive despite being blocked. Essential parts of >> the >> program include handling two signal numbers and having handlers run >> for at >> least 1-2ms; this problem goes away if I remove one of those >> attributes. >> GNU/Linux, AIX, Solaris, and "CYGWIN_NT-6.0 1.7.27(0.271/5/3) >> 2013-12-09 11:57 >> i686" never deliver a blocked signal to this program. I think this >> Cygwin >> behavior is non-conforming. > > Hi Noah, > > I do not think that Cygwin is the problem here; your code is the > problem > here, I believe. [snip] > You cannot use SIG_SETMASK in that context. You cannot use SIG_SETMASK in that context in the way you do. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple