delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/07/04:46:57

X-Recipient: archive-cygwin AT delorie DOT 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 AT mathematik DOT uni-kl DOT 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 AT cygwin DOT com
Subject: Re: sigwait() ignores non-thread-specific pending signals
References: <50C09142 DOT 1090904 AT mathematik DOT uni-kl DOT de> <20121207012753 DOT GA10201 AT ednor DOT casa DOT cgf DOT cx>
In-Reply-To: <20121207012753.GA10201@ednor.casa.cgf.cx>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

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

- Raw text -


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