X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0	tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,TW_CG
X-Spam-Check-By: sourceware.org
Message-ID: <50C1BAF5.6000802@mathematik.uni-kl.de>
Date: Fri, 07 Dec 2012 10:46:29 +0100
From: =?ISO-8859-1?Q?Andreas_Steenpa=DF?= <steenpass@mathematik.uni-kl.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: sigwait() ignores non-thread-specific pending signals
References: <50C09142.1090904@mathematik.uni-kl.de> <20121207012753.GA10201@ednor.casa.cgf.cx>
In-Reply-To: <20121207012753.GA10201@ednor.casa.cgf.cx>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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.

Regards,
Andreas


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

