From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12364 invoked by alias); 22 Aug 2007 19:17:33 -0000 Received: (qmail 12355 invoked by uid 22791); 22 Aug 2007 19:17:32 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (213.8.233.22) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 22 Aug 2007 19:17:27 +0000 Received: from HOME-C4E4A596F7 (IGLD-84-228-54-156.inter.net.il [84.228.54.156]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id HPL26488 (AUTH halo1); Wed, 22 Aug 2007 22:14:34 +0300 (IDT) Date: Wed, 22 Aug 2007 19:17:00 -0000 Message-Id: From: Eli Zaretskii To: "Dave Korn" CC: jimb@codesourcery.com, Roland.Puntaier@br-automation.com, gdb@sourceware.org In-reply-to: <009a01c7e4a4$fdd913e0$2e08a8c0@CAM.ARTIMI.COM> (dave.korn@artimi.com) Subject: Re: gdb-6.6 mingw port hangs after Ctrl-C Reply-to: Eli Zaretskii References: <20070820162439.GA30242@caradoc.them.org> <20070820193128.GA17272@caradoc.them.org> <20070821025607.GA14389@ednor.casa.cgf.cx> <009a01c7e4a4$fdd913e0$2e08a8c0@CAM.ARTIMI.COM> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00164.txt.bz2 > From: "Dave Korn" > Cc: , > > Date: Wed, 22 Aug 2007 11:12:48 +0100 > > > Maybe I'm simply unaware of some subtle issues, but I don't know of > > any situation where this cannot be done safely. In particular, the > > code I wrote for GNU Make works since the release of Make 3.81, and I > > have yet to see any problems with interrupting a running Make, or hear > > a single complaint or bug report related to C-c. > > I'd be curious to take a look at that, can you point me at the right part of > the sources? Sure. job.c:reap_children (search for "GetCurrentThread") is where I record the thread ID of the main thread. command.c:fatal_error_signal is where the main thread ID is used to stop the main thread as soon as we enter the signal handler. Let me know if you find any bugs ;-)