delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Wed, 26 Aug 2009 16:55:31 -0400 |
From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: sigwait() and "sticky" signals (SIGWINCH...) in Cygwin 1.7 |
Message-ID: | <20090826205531.GB13911@ednor.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <loom DOT 20090826T214123-598 AT post DOT gmane DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <loom.20090826T214123-598@post.gmane.org> |
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 Wed, Aug 26, 2009 at 08:13:37PM +0000, Waldemar Rachwal wrote: >I observe strange behavior of sigwait() with SIGWINCH signal (and possibly >others... like SIGCHLD). > >Look at a short program below. In a loop I wait for SIG{INT,WINCH} signals. >SIGWINCH, similarly to SIGCHLD is ignored by default, so I had to register a >dummy signal handler for it. > >When the program (compiled with gcc-4) is running, SIGWINCH is never returned by >the sigwait() immediately after window's resize, but always along with >successive SIGINT when I press Ctrl+C. If you are talking about the resizing of, say, the standard Windows console window that Cygwin runs in by default then that is, unfortunately, a limitation in Cygwin's implementation of SIGWINCH that is probably not going to change. It should work much better when running in rxvt, mintty, or xterm though. 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |