This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

select() not interrupted by signals


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

Attachment: select-intr.c
Description: Text document

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]