Re: Signal delivered while blocked (2)
- Date: Mon, 14 Aug 2017 10:35:55 +0200
- From: Houder <houder@xxxxxxxxx>
- Subject: Re: Signal delivered while blocked (2)
On 2017-08-14 08:03, Houder wrote:
On Fri, 4 Aug 2017 00:44:45, Noah Misch wrote:
Content-Type: text/plain; charset=us-ascii
The attached demonstration program blocks signals (with sigprocmask())
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
signals regularly arrive despite being blocked. Essential parts of
program include handling two signal numbers and having handlers run
least 1-2ms; this problem goes away if I remove one of those
GNU/Linux, AIX, Solaris, and "CYGWIN_NT-6.0 1.7.27(0.271/5/3)
i686" never deliver a blocked signal to this program. I think this
behavior is non-conforming.
I do not think that Cygwin is the problem here; your code is the
here, I believe.
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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple