From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be Date: Wed, 12 Oct 2022 18:40:40 +0300 Message-ID: <83mta1aw3r.fsf@gnu.org> References: <87czaxcmmj.fsf@gnus.org> <83tu49aznn.fsf@gnu.org> <87ilkpayv7.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10840"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58440@debbugs.gnu.org, mwelinder@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 12 17:43:08 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oidsx-0002WW-V3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 17:43:08 +0200 Original-Received: from localhost ([::1]:37180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oidsw-0006KV-Mv for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 11:43:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oidqw-0003kO-Kh for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 11:41:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59179) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oidqw-0001jl-BY for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 11:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oidqv-00013u-NI for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 11:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Oct 2022 15:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58440 X-GNU-PR-Package: emacs Original-Received: via spool by 58440-submit@debbugs.gnu.org id=B58440.16655892434042 (code B ref 58440); Wed, 12 Oct 2022 15:41:01 +0000 Original-Received: (at 58440) by debbugs.gnu.org; 12 Oct 2022 15:40:43 +0000 Original-Received: from localhost ([127.0.0.1]:58257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oidqa-000131-2g for submit@debbugs.gnu.org; Wed, 12 Oct 2022 11:40:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oidqV-00012j-6V for 58440@debbugs.gnu.org; Wed, 12 Oct 2022 11:40:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oidqP-0001h7-Tm; Wed, 12 Oct 2022 11:40:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=anyY+dJ60XR1nuKPXb/02ggwiOOgw/5KAw6iNdwKI0o=; b=Aw5MBCkDP3YJ EPTJAIuecK2K0S/8zWqyhxq5X8d5szTo/f26GrjTY03YzLi3YtyKqUaZ8fwYMqGBDMv3/Jb0tHm2D 1HwarjewcFy8cRFhfHYeuJTTRpCxenlwvuE0tEsShIpQXIWS+j/fyxq8ZxdQPoMXf9+J4Vba5SZyG bB04d0ADsh4k2BYvnY4hPcmgXM86El2meqVFiUqrEFsUm+XosUsyazwQ6lwGeq9qhrVvUY7sQfVBC MDoMh5JjLHhHg9e+7+A/fEPygj/7XFIb4lW43cv881bxl2eBKXKp/nJn82W4erCt/Mu+XOLWaj03K xCKUCwAwXYkqtbj7CyVOiA==; Original-Received: from [87.69.77.57] (port=4774 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oidqP-0003Qi-6O; Wed, 12 Oct 2022 11:40:29 -0400 In-Reply-To: <87ilkpayv7.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 12 Oct 2022 16:41:00 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245225 Archived-At: > From: Lars Ingebrigtsen > Cc: mwelinder@gmail.com, 58440@debbugs.gnu.org > Date: Wed, 12 Oct 2022 16:41:00 +0200 > > Eli Zaretskii writes: > > > What happens if you say > > > > ./src/emacs -Q && echo 'OK' > > > > does it say OK when you kill Emacs with SIGINT? > > Yes. That's strange. So the next step is to attach a debugger to Emacs before delivering SIGINT to it, and see why we don't exit with the status of 1. What I verified is that when I do ./src/emacs -Q -nw && echo 'OK' and then type "kill -INT EMACS-PID" from another terminal, Emacs does a keyboard quit (i.e. flashes the display and says "Quit" in the echo-area), which is exactly as I expect. So in the -nw case, the installed SIGINT handler is called and does what is expected.