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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 >#include >#include >#include >#include > >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