delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE |
X-Spam-Check-By: | sourceware.org |
X-Mail-Handler: | Dyn Standard SMTP by Dyn |
X-Report-Abuse-To: | abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) |
X-MHO-User: | U2FsdGVkX1+i8Q1nWqG5rvnb9laQOEp7 |
Date: | Wed, 8 Aug 2012 17:59:09 -0400 |
From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Please test snapshots |
Message-ID: | <20120808215909.GA29761@ednor.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <86k3xcaxxh DOT fsf AT w2139spb DOT ru DOT yotateam DOT com> <50203227 DOT 50207 AT dancol DOT org> <50205E0E DOT 3060406 AT dancol DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <50205E0E.3060406@dancol.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 Mon, Aug 06, 2012 at 05:15:10PM -0700, Daniel Colascione wrote: >On 8/6/2012 2:07 PM, Daniel Colascione wrote: >> I just saw a hang building Emacs (using "make bootstrap") > >Signal handling appears to be broken. Here's a simple testcase. Run the program >and hit control-c. It'll print "got Alarm clock", then stop accepting any >signals at all, even SIGSTOP. The same program works fine on my Debian stable box. I forgot to send out a notice about this. This particular issue should be fixed in the latest snapshot. You mention generic "signal handling" rather than "sigwaitinfo" so I don't know if there are other issues. It doesn't seem like much would work if signal handling was completely broken, though. Thanks for the test case. cgf >#define _GNU_SOURCE 1 >#include <unistd.h> >#include <stdio.h> >#include <stdlib.h> >#include <signal.h> >#include <pthread.h> > >int >main() >{ > sigset_t waitmask; > int sig; > > sigemptyset (&waitmask); > sigaddset (&waitmask, SIGINT); > sigprocmask (SIG_BLOCK, &waitmask, NULL); > > for (;;) { > sig = sigwaitinfo (&waitmask, NULL); > fprintf (stderr, "got %s\n", sys_siglist[sig]); > if (sig == SIGINT) { > break; > } > } > > return 0; >} > -- 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 |