From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40807 invoked by alias); 27 Jul 2015 15:44:16 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 40796 invoked by uid 89); 27 Jul 2015 15:44:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: mail-ob0-f179.google.com Received: from mail-ob0-f179.google.com (HELO mail-ob0-f179.google.com) (209.85.214.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 27 Jul 2015 15:44:15 +0000 Received: by obre1 with SMTP id e1so62583625obr.1 for ; Mon, 27 Jul 2015 08:44:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=G+l1ixxehPosOllYP0ThXQ4iVKPeTHxh9nWOJfQHGrw=; b=Bde+wBXXl3EJDTvgaH/oC54wNcZmeyFfMDgsVxWaqZ1WS5BGbj8elFLqi3SYbKUIQN /suqdLGovrqw+I/PVmF70NDFQmr4paFH4LNDtCV1Oq8DmpLiD1S5iY6clqNpvIlMcmtz gB+vBfrWj+atqlsKo0yL9nPJdG00TCEEAJe6n0+nMhyxsWh0xeVqGTx2Yj4bYr6gVpec NJHtxBKWUThqyD/mqQET0WWktiNpuyySFRdSxsMFk9QAkciHRFiq0lEfWT4RM6JNRBxI jq7GsZ566deuwLOxpqgdsSzN1Amtzg+NIwHjd6G8iosjXjXpibcIzjML22VSLPhjfynT aM+g== X-Gm-Message-State: ALoCoQlYs3Yvqzge6wwC3XAfSPkEZ9jagPBu7XvyQHaYUXaWDmG6638/K1rcqRCbnA0TeHUB43A7 X-Received: by 10.60.56.2 with SMTP id w2mr28114680oep.14.1438011853325; Mon, 27 Jul 2015 08:44:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.56.202 with HTTP; Mon, 27 Jul 2015 08:43:54 -0700 (PDT) In-Reply-To: <55B64C5E.8060009@redhat.com> References: <1437762829-5214-1-git-send-email-patrick@parcs.ath.cx> <55B645E1.7060809@redhat.com> <55B64C5E.8060009@redhat.com> From: Patrick Palka Date: Mon, 27 Jul 2015 15:44:00 -0000 Message-ID: Subject: Re: [PATCH] Have SIGTERM promptly quit GDB even when the dummy target is active To: Pedro Alves Cc: "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-07/txt/msg00792.txt.bz2 On Mon, Jul 27, 2015 at 11:21 AM, Pedro Alves wrote: > On 07/27/2015 03:53 PM, Pedro Alves wrote: >> On 07/24/2015 07:33 PM, Patrick Palka wrote: >> >>> gdb/ChangeLog: >>> >>> * event-top.c (handle_sigterm): Don't inspect >>> target_can_async_p. Always set the quit flag and always mark >>> the async signal handler. >> >> OK. > > BTW, I notice that GDB leaves the terminal settings broken > after exiting on SIGTERM. Is that something you're already > looking at? (Mostly likely there's a target_terminal_ours > missing somewhere.) I think we should do target_terminal_ours in quit_force. (A similar problem also exists in our SIGWINCH handler.)