X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:date:from:to:subject:in-reply-to :references:message-id; q=dns; s=default; b=Jeg25PsWtAnYs30pmSoj XxSbnxpsKnLfGB0gT8bFEqwEE/imBxQXIdb2unvhPRbulSM7djPbnvmzatdX6rh0 nK+p36bsV8rZiBCGeUUDn44xinfRPP/dnxjwk8xeTZNJc+3S/4EeQ9AaGS//oQ7v QRfUSk8J4dO80HPHY3VrSZQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:date:from:to:subject:in-reply-to :references:message-id; s=default; bh=WjJZhL81hfFR52+9eyfiuXAf66 o=; b=ir8Em70HK2cv4lHS5FMF0wV0FscNVb8qWR2JkmB5OUDyV/fOYWacAJCbSX whYeffefg4nkLPJAN4ApcsdfS4o5Xv3yNRUVhCG4tDCEKCIFat+c5atyXERc4qBJ EXx8BO4FmsDaKQsajK1l9zAxZmjEiHUFRMZ057lvk3Fb9M560= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 14 Aug 2017 10:35:55 +0200 From: Houder To: cygwin AT cygwin DOT com Subject: Re: Signal delivered while blocked (2) In-Reply-To: <8f7f7f8ae098c1321f608645c750cae4@smtp-cloud7.xs4all.net> References: <20170804074445 DOT GB3154757 AT rfd DOT leadboat DOT com> <8f7f7f8ae098c1321f608645c750cae4 AT smtp-cloud7 DOT xs4all DOT net> Message-ID: <3b48072dd1f4f1931dd7bb8b4bfc701b@xs4all.nl> X-Sender: houder AT xs4all DOT nl User-Agent: XS4ALL Webmail X-CMAE-Envelope: MS4wfAp/QSKKJPUtjRIBLaGPKkc6n4MkkP56r42RzOzWMiMMwoYBRyUBWupM/MKfjK2LReY192vbaIIyHdHt42EPlD/V9IRWOG4bgqZ3pAubndzyXK6M0rPb hLgBP5vBlkcrHrXH+nvOPhOaxfLLmnjtcWaLrRevC9HwN7CFLx3fPUOIyoU77lqFle8RKKNboubTOS1H2yFYyds8+1Ex7mlM0hM= 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