From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15456 invoked by alias); 21 Aug 2007 23:47:03 -0000 Received: (qmail 15351 invoked by uid 22791); 21 Aug 2007 23:47:02 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 21 Aug 2007 23:47:00 +0000 Received: (qmail 26032 invoked from network); 21 Aug 2007 23:46:58 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 21 Aug 2007 23:46:58 -0000 To: Eli Zaretskii Cc: Roland.Puntaier@br-automation.com, gdb@sourceware.org Subject: Re: gdb-6.6 mingw port hangs after Ctrl-C References: <20070820162439.GA30242@caradoc.them.org> <20070820193128.GA17272@caradoc.them.org> <20070821025607.GA14389@ednor.casa.cgf.cx> From: Jim Blandy Date: Tue, 21 Aug 2007 23:47:00 -0000 In-Reply-To: (Eli Zaretskii's message of "Tue, 21 Aug 2007 22:08:57 +0300") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00158.txt.bz2 Eli Zaretskii writes: >> Cc: gdb@sourceware.org >> From: Jim Blandy >> Date: Tue, 21 Aug 2007 10:41:57 -0700 >> >> The issue at hand here is that we need C-c to interrupt the main >> thread as it reads from the remote host. That could be a pipe, a >> socket, or a serial port. >> >> Do you know how one can safely interrupt each of these kinds of reads >> in Windows? > > What do you mean by ``safely interrupt''? The main thread is in the midst of a 'read' or 'write' operation. We want the thread handling the C-c to be able to make the main thread abandon that operation with a suitable indication of why.