From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be Date: Wed, 12 Oct 2022 17:54:55 +0200 Message-ID: <875ygpavg0.fsf@gnus.org> References: <2A45406C-33B5-4A42-88F8-001D53C7351D@gmail.com> <87a661avtc.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23709"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 58440@debbugs.gnu.org, Morten Welinder , Eli Zaretskii To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 12 18:01:28 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 1oieAh-00060o-If for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 18:01:27 +0200 Original-Received: from localhost ([::1]:39472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oieAg-0007zI-Gw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 12:01:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oie5V-0004hO-3F for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 11:56:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oie5R-00044U-Sn for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 11:56:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oie5R-0001UF-JY for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 11:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Oct 2022 15:56: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.16655901135653 (code B ref 58440); Wed, 12 Oct 2022 15:56:01 +0000 Original-Received: (at 58440) by debbugs.gnu.org; 12 Oct 2022 15:55:13 +0000 Original-Received: from localhost ([127.0.0.1]:58270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oie4b-0001Sy-U9 for submit@debbugs.gnu.org; Wed, 12 Oct 2022 11:55:13 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:53242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oie4X-0001S6-KT for 58440@debbugs.gnu.org; Wed, 12 Oct 2022 11:55:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0H0JOeppA00m1zRdjgBi1FXH/idhxDCo/UGd6f6HRA0=; b=JgQ03BF/CXgP38eKczWSsddE3d PGZC8LWEgMANTwiJlQAQ9aR2UNIvOW7B8OTJhiyVQY68jo4QiHOP30ObVyKQKpnguQA2496I1MPsa 1n2UCXuziiqM3z8zg403UZBAz5RTs5vBq9pKxIHQX0iYyQ6ctdm7SNDnULRW77dlu9Sg=; Original-Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oie4O-0007u3-L9; Wed, 12 Oct 2022 17:54:58 +0200 In-Reply-To: <87a661avtc.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 12 Oct 2022 17:46:55 +0200") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJ cEhZcwAACxIAAAsSAdLdfvwAAAAHdElNRQfmCgwPKykzMdceAAABl0lEQVRIx61Vy7HDMAhce9SU j9tEeqAiekgTFJNG3gEJC0m2k5nHJTFmgeXn7cCtiA6KHQ8i8iMAzIjy4J+jZoogEyiHGAHCd/9+ CjAABOoepcJsAjQOXj493RLah4mHXXLmAgAka+psYcKgpqTaeTMLM2u6YF6GXg5Jn6RJUwDYPrCh ++JhACje1Q0B4FVTynUWIedIFvxKLkh1X4mdnhjV2j7Ng2ZrGDQrPLcKmMSIqFCS62m1rtj2DGDq Fp8BXop5dB9SwvcAA1SgPB+rXFXJ+y9P+5AirLbvhoMO1QmALc1Nrxzt/M3+KsK1FNgiU20/8coa ofvLp6+wb0nu2nZ4La/KKUhtxzz0mXRrBhsHYKbBbo58sSKJ0qN7BM/hE3Ym2wHBsqXBNQ/UduAO McueGH0J0NWV/rcIBUgXy7yCVZMWjjNpc+PeoSA03uDi7rr7mDPQ9Jfj8BmuFwGAmkc471XMkGi/ zyrVkYJ5NNod95MfwkhO6d+4r9sgKPmW1BA6t6ZfoBU9Xa6VECUFsMFj646eX84/BS+GVEnRtQUA AAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMTAtMTJUMTU6NDM6NDErMDA6MDC+XuW+AAAAJXRFWHRk YXRlOm1vZGlmeQAyMDIyLTEwLTEyVDE1OjQzOjQxKzAwOjAwzwNdAgAAAABJRU5ErkJggg== X-Now-Playing: Severed Heads's _Under Gail Succubus_: "Psychic Squirt" 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:245228 Archived-At: Lars Ingebrigtsen writes: >>> It does seem like a bug -- I'd expect a non-zero exit code in this case. >> >> It's by design, more or less: see handle_interrupt_signal in >> keyboard.c. Whether that design is desired or not is a different >> matter. >> >> (C-g should probably not generate a signal in the first place; it >> creates more problems than it solves.) > > Hm, sounds like it... > > But looking at the code: And anyway -- we do exit like we're supposed to, just not with the correct value. So I'm not sure this is an explanation for this behaviour?