delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/11/07:56:24

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <50F00BD5.9090405@towo.net>
Date: Fri, 11 Jan 2013 13:55:49 +0100
From: Thomas Wolff <towo AT towo DOT net>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: select() not interrupted by signals
References: <50EFD041 DOT 4090108 AT towo DOT net> <20130111085256 DOT GC17162 AT calimero DOT vinschen DOT de>
In-Reply-To: <20130111085256.GC17162@calimero.vinschen.de>
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

On 11.01.2013 09:52, Corinna Vinschen wrote:
> On Jan 11 09:41, Thomas Wolff wrote:
>> I had previously reported "select() hanging after terminal killed"
>> (http://cygwin.com/ml/cygwin/2011-05/msg00418.html).
>> It turns out that select() does not get interrupted by a SIGWINCH
>> signal either (with likely the same cause).
>> This raises problems with interactive programs that want to react to
>> window size changes (like text editors).
>>
>> See attached updated test case; run the program, while select() is
>> waiting (before 5 second timeout each), change window size and see
>> no interrupt.
>> On other systems, select() is interrupted (test case: from mintty,
>> remote login to SunOS; also showing the terminal is not involved in
>> the problem).
>>
>> This bug did not exist in cygwin 1.5; I see some Changelog entries
>> from 2011-12-13 or 2012-01-22 which might be related.
> Just for clarity, did you test with the latest snapshot?
No, with the source package of the latest release.
And I can't test with the snapshot as it doesn't compile here (after 
fresh download and unpack):

In file included from 
/usr/src/cygwin-snapshot-20130107-1/newlib/libc/include/sys/types.h:61:0,
                  from ../../.././winsup/cygwin/winsup.h:29,
                  from 
../../.././winsup/cygwin/lib/_cygwin_crt0_common.cc:11:
/usr/src/cygwin-snapshot-20130107-1/newlib/libc/include/sys/_types.h:63:20: 
schwerwiegender Fehler: stddef.h: No such file or directory
Kompilierung beendet.

------
Thomas

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