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: Thu, 13 Oct 2022 19:33:30 +0300 Message-ID: <83czavadk5.fsf@gnu.org> References: <2A45406C-33B5-4A42-88F8-001D53C7351D@gmail.com> <87a661avtc.fsf@gnus.org> <875ygpavg0.fsf@gnus.org> <87a6609qpk.fsf@gnus.org> <62256137-3560-472D-93BF-D353A44D1D56@gmail.com> <87bkqg87n0.fsf@gnus.org> <83v8oo9frg.fsf@gnu.org> <87y1tk6jtz.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4810"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mattias.engdegard@gmail.com, mwelinder@gmail.com, 58440@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 13 18:34:36 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 1oj1AJ-0000zr-Sp for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Oct 2022 18:34:36 +0200 Original-Received: from localhost ([::1]:40124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oj1AI-0000rk-Db for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Oct 2022 12:34:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oj19m-0000Qd-W7 for bug-gnu-emacs@gnu.org; Thu, 13 Oct 2022 12:34:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oj19m-0006Ww-Ik for bug-gnu-emacs@gnu.org; Thu, 13 Oct 2022 12:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oj19m-0006hb-6E for bug-gnu-emacs@gnu.org; Thu, 13 Oct 2022 12:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Oct 2022 16:34:02 +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.166567883025741 (code B ref 58440); Thu, 13 Oct 2022 16:34:02 +0000 Original-Received: (at 58440) by debbugs.gnu.org; 13 Oct 2022 16:33:50 +0000 Original-Received: from localhost ([127.0.0.1]:34764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oj19Z-0006h6-Qd for submit@debbugs.gnu.org; Thu, 13 Oct 2022 12:33:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oj19V-0006gp-Rs for 58440@debbugs.gnu.org; Thu, 13 Oct 2022 12:33:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oj19P-0006Vt-LS; Thu, 13 Oct 2022 12:33:39 -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=wLVYHncXvyG8L2qPfsMJEEnaqK65Jr/GuhVYeImTIs0=; b=W3R52hv+xrAV JfGVw7CpjWSKVoZNYvnKvgsI6HJAtUTbIgA0IrC6Lsg5cA+IPj9XEDeJ7JUGuEd3UrxoXKf8Xy9+Q fXrcA2sNNlelUzArHE88WdU0j2L0Sz/jfKaEC50wYK2+nVXOXmqyVW2V48oYAAspWWN66DWwIYWtq 9hLlEe0/2fmkWhjb/ThefvNeEXIbvn8ZUTqi18Wv1b3NcAe83J9Qxf5pyO7LqOc1+TUXmZ36bwyIO aw6ANsuHZV0B0IQAaRZ42rkAlwt/lnAC1Cr0jTJDjaPZZsgSD53D0Kj82huwTXooQFtscwUmxNctX yLANsUvwNdnTqIlP27lcoA==; Original-Received: from [87.69.77.57] (port=1165 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 1oj19P-0001tC-3I; Thu, 13 Oct 2022 12:33:39 -0400 In-Reply-To: <87y1tk6jtz.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 13 Oct 2022 13:31:36 +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:245327 Archived-At: > From: Lars Ingebrigtsen > Cc: mattias.engdegard@gmail.com, 58440@debbugs.gnu.org, mwelinder@gmail.com > Date: Thu, 13 Oct 2022 13:31:36 +0200 > > Eli Zaretskii writes: > > >> I think it'd make sense to change the exit code here -- it seems more > >> logical, and I think the potential for breakage is small. (I mean, > >> there may be people that have scripts that rely on Emacs having a zero > >> exit code on SIGINT, but it seems rather unlikely.) > >> > >> Anybody have any objections to making this change? > > > > What change did you have in mind? C-g should still raise SIGINT on > > TTY frames, so if that's the change you propose, I'm against it. > > I'm proposing that we exit on a non-zero value if and when we decide to > exit after a SIGKILL. SIGINT, you mean, yes? How do you see that we exit with zero status now? I mean, not by looking what the shell says, but by tracing the code which handles SIGINT? I'd like to see what code we are talking about before making up my mind about the change you propose.