delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/07/12:39:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_CG
X-Spam-Check-By: sourceware.org
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX19cpZ4H+2PouRRG9FVzBWhR
Date: Fri, 7 Dec 2012 12:38:40 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: sigwait() ignores non-thread-specific pending signals
Message-ID: <20121207173840.GA30939@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <50C09142 DOT 1090904 AT mathematik DOT uni-kl DOT de> <20121207012753 DOT GA10201 AT ednor DOT casa DOT cgf DOT cx> <50C1BAF5 DOT 6000802 AT mathematik DOT uni-kl DOT de>
MIME-Version: 1.0
In-Reply-To: <50C1BAF5.6000802@mathematik.uni-kl.de>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Fri, Dec 07, 2012 at 10:46:29AM +0100, Andreas Steenpa? wrote:
>Le 07/12/2012 02:27, Christopher Faylor a ?crit :
>> I don't see any difference between Cygwin and Linux when I run the
>> test program.
>>
>> cgf
>
>I re-compiled and ran the test program under Cygwin 1.7.17 as well as on
>several Linux machines (Debian/Fedora/Gentoo/Ubuntu, kernel versions
>2.6.29/2.6.32/3.0.6/3.2.0/3.2.12/3.4.9/3.6.6, different kinds of CPUs
>etc.) and I definitely see a difference.
>
>The difference is that after typing in the commands
>kill -SIGUSR2 [pid]
>kill -SIGUSR1 [pid]
>kill -SIGUSR2 [pid]
>kill -SIGUSR1 [pid]
>(in this order!) in another console, the program blocks under Cygwin
>while it exits normally under Linux. The last output under Cygwin is
>'thread 2 waiting for SIGUSR2' while under Linux, one more line 'thread
>2 received SIGUSR2' is printed out before the program exits.

Sorry, I missed the extra kills in your example.

This should be fixed in CVS and in the upcoming snapshot.

cgf

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019