From unknown Tue Sep 09 06:10:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#11886 <11886@debbugs.gnu.org> To: bug#11886 <11886@debbugs.gnu.org> Subject: Status: 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell Reply-To: bug#11886 <11886@debbugs.gnu.org> Date: Tue, 09 Sep 2025 13:10:58 +0000 retitle 11886 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT= to the parent shell reassign 11886 emacs submitter 11886 Vincent Lefevre severity 11886 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 08:18:12 2012 Received: (at submit) by debbugs.gnu.org; 9 Jul 2012 12:18:13 +0000 Received: from localhost ([127.0.0.1]:57652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoCuq-0000Ud-G7 for submit@debbugs.gnu.org; Mon, 09 Jul 2012 08:18:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33216) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoCuo-0000UW-Uo for submit@debbugs.gnu.org; Mon, 09 Jul 2012 08:18:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoCpd-0000Sv-Rk for submit@debbugs.gnu.org; Mon, 09 Jul 2012 08:12:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:51756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoCpd-0000Sn-O0 for submit@debbugs.gnu.org; Mon, 09 Jul 2012 08:12:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoCpX-000076-HA for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 08:12:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoCpS-0000Pt-EK for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 08:12:42 -0400 Received: from vinc17.pck.nerim.net ([213.41.242.187]:61787 helo=smtp-xvii.vinc17.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoCpS-0000P2-2R for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 08:12:38 -0400 Received: by xvii.vinc17.org (Postfix, from userid 1000) id 2683738C00A; Mon, 9 Jul 2012 14:12:35 +0200 (CEST) From: Vincent Lefevre To: bug-gnu-emacs@gnu.org Subject: 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell Date: Mon, 09 Jul 2012 14:12:34 +0200 Message-ID: <874nph2kwd.fsf@xvii.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) A Ctrl-G in an Emacs 24.1 running in a terminal sends a SIGINT to the parent shell. This can be seen with dash, mksh and posh under Debian. For instance: $ dash -c "/usr/local/emacs-24.1/bin/emacs -Q -nw" $ echo $? 130 Emacs 23 didn't have such a problem. In GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-06-19 on xvii Configured using: `configure '--prefix=/usr/local/emacs-24.1' '--enable-asserts'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: POSIX value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: en_DK value of $LANG: POSIX value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: display-time-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 0 ; 2 7 8 ; 0 c ESC ] 1 1 ; r g b : 0 0 0 0 / 0 0 0 0 / 0 0 0 0 ESC \ ESC x r e p o r t - b u g RET Recent messages: ("/usr/local/emacs-24.1/bin/emacs") Loading /home/vinc17/share/emacs/site-lisp/mutteditor.el (source)...done Loading time...done For information about GNU Emacs and the GNU system, type C-h C-a. goto-history-element: Beginning of history; no preceding item Load-path shadows: ~/share/emacs/site-lisp/sh-script hides /usr/local/emacs-24.1/share/emacs/24.1/lisp/progmodes/sh-script Features: (shadow sort gnus-util mail-extr warnings emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time cus-start cus-load time-date paren cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 10:34:58 2012 Received: (at 11886) by debbugs.gnu.org; 9 Jul 2012 14:34:59 +0000 Received: from localhost ([127.0.0.1]:58190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoF3C-0003gA-7S for submit@debbugs.gnu.org; Mon, 09 Jul 2012 10:34:58 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:55346) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoF39-0003g2-8H for 11886@debbugs.gnu.org; Mon, 09 Jul 2012 10:34:56 -0400 Received: from frontend4.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3WW88p3gFmz4KK3S; Mon, 9 Jul 2012 16:30:33 +0200 (CEST) Received: from igel.home (ppp-88-217-126-222.dynamic.mnet-online.de [88.217.126.222]) by mail.mnet-online.de (Postfix) with ESMTPA id 3WW87h3bmKzbbh9; Mon, 9 Jul 2012 16:29:36 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id C6F28CA2A2; Mon, 9 Jul 2012 16:29:35 +0200 (CEST) From: Andreas Schwab To: Vincent Lefevre Subject: Re: bug#11886: 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell References: <874nph2kwd.fsf@xvii.vinc17.org> X-Yow: Where's the Coke machine? Tell me a joke!! Date: Mon, 09 Jul 2012 16:29:35 +0200 In-Reply-To: <874nph2kwd.fsf@xvii.vinc17.org> (Vincent Lefevre's message of "Mon, 09 Jul 2012 14:12:34 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11886 Cc: 11886@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Vincent Lefevre writes: > This can be seen with dash, mksh and posh under Debian. For instance: > > $ dash -c "/usr/local/emacs-24.1/bin/emacs -Q -nw" What happens when you run gdb like this and type C-c? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 11:28:02 2012 Received: (at 11886) by debbugs.gnu.org; 9 Jul 2012 15:28:02 +0000 Received: from localhost ([127.0.0.1]:58263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoFsX-0004sF-CO for submit@debbugs.gnu.org; Mon, 09 Jul 2012 11:28:01 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:51641) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoFsU-0004s6-Iv for 11886@debbugs.gnu.org; Mon, 09 Jul 2012 11:27:59 -0400 Received: from frontend4.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3WW9L3159wz3hhj6; Mon, 9 Jul 2012 17:23:36 +0200 (CEST) Received: from igel.home (ppp-88-217-126-222.dynamic.mnet-online.de [88.217.126.222]) by mail.mnet-online.de (Postfix) with ESMTPA id 3WW9Jt134wzbbhZ; Mon, 9 Jul 2012 17:22:38 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 8EDC7CA2A2; Mon, 9 Jul 2012 17:22:37 +0200 (CEST) From: Andreas Schwab To: Vincent Lefevre Subject: Re: bug#11886: 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell References: <874nph2kwd.fsf@xvii.vinc17.org> X-Yow: I'm CONTROLLED by the CIA!! EVERYONE is controlled by the CIA!! Date: Mon, 09 Jul 2012 17:22:37 +0200 In-Reply-To: <874nph2kwd.fsf@xvii.vinc17.org> (Vincent Lefevre's message of "Mon, 09 Jul 2012 14:12:34 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11886 Cc: dann@ics.uci.edu, 11886@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) BSD_PGRPS has been removed from s/gnu-linux.h in but without a change log. Subsequently removed BSD_PGRPS altogether. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 12:14:16 2012 Received: (at 11886) by debbugs.gnu.org; 9 Jul 2012 16:14:17 +0000 Received: from localhost ([127.0.0.1]:58321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoGbI-0005xJ-OA for submit@debbugs.gnu.org; Mon, 09 Jul 2012 12:14:16 -0400 Received: from vinc17.pck.nerim.net ([213.41.242.187]:50352 helo=smtp-xvii.vinc17.net) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoGbH-0005xD-NK for 11886@debbugs.gnu.org; Mon, 09 Jul 2012 12:14:16 -0400 Received: by xvii.vinc17.org (Postfix, from userid 1000) id 18A7438C00A; Mon, 9 Jul 2012 18:08:58 +0200 (CEST) Date: Mon, 9 Jul 2012 18:08:58 +0200 From: Vincent Lefevre To: Andreas Schwab Subject: Re: bug#11886: 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell Message-ID: <20120709160857.GL5847@xvii.vinc17.org> References: <874nph2kwd.fsf@xvii.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6205-vl-r52214 (2012-05-24) Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11886 Cc: 11886@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 2012-07-09 16:29:35 +0200, Andreas Schwab wrote: > Vincent Lefevre writes: >=20 > > This can be seen with dash, mksh and posh under Debian. For instance: > > > > $ dash -c "/usr/local/emacs-24.1/bin/emacs -Q -nw" >=20 > What happens when you run gdb like this and type C-c? Exactly the same thing and differences between shells. I assume that like Ctrl-G in Emacs, a Ctrl-C in gdb is intended to be just for gdb, not for the parent processes, contrary to something like some_shell -c "sleep 3"; echo foo where Ctrl-C is typed during the "sleep 3" (as expected, "foo" is never output). --=20 Vincent Lef=E8vre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 12:47:03 2012 Received: (at 11886) by debbugs.gnu.org; 9 Jul 2012 16:47:03 +0000 Received: from localhost ([127.0.0.1]:58359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoH6z-0006iF-BT for submit@debbugs.gnu.org; Mon, 09 Jul 2012 12:47:02 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:54007) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoH6w-0006i3-W8 for 11886@debbugs.gnu.org; Mon, 09 Jul 2012 12:47:00 -0400 Received: from frontend4.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3WWC5D6gZDz3hhcb; Mon, 9 Jul 2012 18:42:39 +0200 (CEST) Received: from igel.home (ppp-88-217-126-222.dynamic.mnet-online.de [88.217.126.222]) by mail.mnet-online.de (Postfix) with ESMTPA id 3WWC451f62zbbn8; Mon, 9 Jul 2012 18:41:41 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 726BFCA2A5; Mon, 9 Jul 2012 18:41:40 +0200 (CEST) From: Andreas Schwab To: Vincent Lefevre Subject: Re: bug#11886: 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell References: <874nph2kwd.fsf@xvii.vinc17.org> <20120709160857.GL5847@xvii.vinc17.org> X-Yow: RELATIVES!! Date: Mon, 09 Jul 2012 18:41:40 +0200 In-Reply-To: <20120709160857.GL5847@xvii.vinc17.org> (Vincent Lefevre's message of "Mon, 9 Jul 2012 18:08:58 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11886 Cc: 11886@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Vincent Lefevre writes: > On 2012-07-09 16:29:35 +0200, Andreas Schwab wrote: >> Vincent Lefevre writes: >> >> > This can be seen with dash, mksh and posh under Debian. For instance: >> > >> > $ dash -c "/usr/local/emacs-24.1/bin/emacs -Q -nw" >> >> What happens when you run gdb like this and type C-c? > > Exactly the same thing and differences between shells. I think this is a bug in the shell. It should ignore SIGINT and SIGQUIT while executing the command. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 12:56:39 2012 Received: (at 11886) by debbugs.gnu.org; 9 Jul 2012 16:56:39 +0000 Received: from localhost ([127.0.0.1]:58392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoHGF-0006w2-FB for submit@debbugs.gnu.org; Mon, 09 Jul 2012 12:56:39 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:57422) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoHG9-0006vr-KW for 11886@debbugs.gnu.org; Mon, 09 Jul 2012 12:56:34 -0400 Received: from frontend4.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3WWCJB443Fz4KK46; Mon, 9 Jul 2012 18:52:10 +0200 (CEST) Received: from igel.home (ppp-88-217-126-222.dynamic.mnet-online.de [88.217.126.222]) by mail.mnet-online.de (Postfix) with ESMTPA id 3WWCH471kvzbbhJ; Mon, 9 Jul 2012 18:51:12 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id A527DCA2A5; Mon, 9 Jul 2012 18:51:12 +0200 (CEST) From: Andreas Schwab To: Vincent Lefevre Subject: Re: bug#11886: 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell References: <874nph2kwd.fsf@xvii.vinc17.org> <20120709160857.GL5847@xvii.vinc17.org> X-Yow: My life is a patio of fun! Date: Mon, 09 Jul 2012 18:51:12 +0200 In-Reply-To: <20120709160857.GL5847@xvii.vinc17.org> (Vincent Lefevre's message of "Mon, 9 Jul 2012 18:08:58 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11886 Cc: 11886@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) You will probably get the same behaviour with any other interactive command. Emacs was unusual in that it put itself in its own process group. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 20:06:58 2012 Received: (at 11886) by debbugs.gnu.org; 10 Jul 2012 00:06:59 +0000 Received: from localhost ([127.0.0.1]:58755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoNyj-0001MO-C9 for submit@debbugs.gnu.org; Mon, 09 Jul 2012 20:06:58 -0400 Received: from vinc17.pck.nerim.net ([213.41.242.187]:56223 helo=smtp-xvii.vinc17.net) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoNyf-0001ME-Dp for 11886@debbugs.gnu.org; Mon, 09 Jul 2012 20:06:55 -0400 Received: by xvii.vinc17.org (Postfix, from userid 1000) id 52E0838C037; Tue, 10 Jul 2012 02:01:34 +0200 (CEST) Date: Tue, 10 Jul 2012 02:01:34 +0200 From: Vincent Lefevre To: Andreas Schwab Subject: Re: bug#11886: 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell Message-ID: <20120710000134.GQ5847@xvii.vinc17.org> References: <874nph2kwd.fsf@xvii.vinc17.org> <20120709160857.GL5847@xvii.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6205-vl-r52214 (2012-05-24) Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11886 Cc: 11886@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 2012-07-09 18:41:40 +0200, Andreas Schwab wrote: > Vincent Lefevre writes: >=20 > > On 2012-07-09 16:29:35 +0200, Andreas Schwab wrote: > >> Vincent Lefevre writes: > >>=20 > >> > This can be seen with dash, mksh and posh under Debian. For instan= ce: > >> > > >> > $ dash -c "/usr/local/emacs-24.1/bin/emacs -Q -nw" > >>=20 > >> What happens when you run gdb like this and type C-c? > > > > Exactly the same thing and differences between shells. >=20 > I think this is a bug in the shell. It should ignore SIGINT and SIGQUI= T > while executing the command. I can report a bug against these shells, but how does a shell make a difference between some_shell -c "/bin/sleep 3" (on which SIGINT isn't ignored) and some_shell -c "emacs ..." (on which it should ignore SIGINT)? --=20 Vincent Lef=E8vre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 20:23:36 2012 Received: (at 11886) by debbugs.gnu.org; 10 Jul 2012 00:23:36 +0000 Received: from localhost ([127.0.0.1]:58772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoOEq-0001j0-GT for submit@debbugs.gnu.org; Mon, 09 Jul 2012 20:23:36 -0400 Received: from vinc17.pck.nerim.net ([213.41.242.187]:56572 helo=smtp-xvii.vinc17.net) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoOEo-0001is-1Y for 11886@debbugs.gnu.org; Mon, 09 Jul 2012 20:23:35 -0400 Received: by xvii.vinc17.org (Postfix, from userid 1000) id 2952438C037; Tue, 10 Jul 2012 02:18:15 +0200 (CEST) Date: Tue, 10 Jul 2012 02:18:15 +0200 From: Vincent Lefevre To: Andreas Schwab Subject: Re: bug#11886: 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell Message-ID: <20120710001815.GR5847@xvii.vinc17.org> References: <874nph2kwd.fsf@xvii.vinc17.org> <20120709160857.GL5847@xvii.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6205-vl-r52214 (2012-05-24) Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11886 Cc: 11886@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 2012-07-09 18:51:12 +0200, Andreas Schwab wrote: > You will probably get the same behaviour with any other interactive > command. Emacs was unusual in that it put itself in its own process > group. No, a Ctrl-C in zsh -c "info Emacs"; echo foo interrupts info though it is interactive, contrary to what happens with gdb and Emacs. It seems that the condition is that the command traps the signal. One even has: ypig:~> cat trap.sh #!/bin/bash trap 'kill -INT $$' INT sleep 3 ypig:~> zsh -c trap.sh; echo foo ^Czsh: exit 130 zsh -c trap.sh foo --=20 Vincent Lef=E8vre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 10 02:58:05 2012 Received: (at 11886) by debbugs.gnu.org; 10 Jul 2012 06:58:05 +0000 Received: from localhost ([127.0.0.1]:59088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoUOZ-0002po-CE for submit@debbugs.gnu.org; Tue, 10 Jul 2012 02:58:05 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:39934) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoUOW-0002pN-DB for 11886@debbugs.gnu.org; Tue, 10 Jul 2012 02:58:01 -0400 Received: from frontend4.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3WWYz907j9z3hhft; Tue, 10 Jul 2012 08:53:40 +0200 (CEST) Received: from igel.home (ppp-88-217-107-49.dynamic.mnet-online.de [88.217.107.49]) by mail.mnet-online.de (Postfix) with ESMTPA id 3WWYxz54XTzbbnM; Tue, 10 Jul 2012 08:52:39 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 234F5CA2A5; Tue, 10 Jul 2012 08:52:38 +0200 (CEST) From: Andreas Schwab To: Vincent Lefevre Subject: Re: bug#11886: 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell References: <874nph2kwd.fsf@xvii.vinc17.org> <20120709160857.GL5847@xvii.vinc17.org> <20120710001815.GR5847@xvii.vinc17.org> X-Yow: WHOA!! I'm having a RELIGIOUS EXPERIENCE right NOW!! Date: Tue, 10 Jul 2012 08:52:38 +0200 In-Reply-To: <20120710001815.GR5847@xvii.vinc17.org> (Vincent Lefevre's message of "Tue, 10 Jul 2012 02:18:15 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11886 Cc: 11886@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Vincent Lefevre writes: > It seems that the condition is that the command traps the signal. Of course. A command that exits on C-c exits on C-c. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 07 10:13:10 2012 Received: (at 11886) by debbugs.gnu.org; 7 Aug 2012 14:13:10 +0000 Received: from localhost ([127.0.0.1]:39808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SykWz-0004kl-UR for submit@debbugs.gnu.org; Tue, 07 Aug 2012 10:13:10 -0400 Received: from vinc17.pck.nerim.net ([213.41.242.187]:49463 helo=smtp-xvii.vinc17.net) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SykWy-0004ke-3b for 11886@debbugs.gnu.org; Tue, 07 Aug 2012 10:13:09 -0400 Received: by xvii.vinc17.org (Postfix, from userid 1000) id 0AD5632C009; Tue, 7 Aug 2012 16:05:07 +0200 (CEST) Date: Tue, 7 Aug 2012 16:05:07 +0200 From: Vincent Lefevre To: Andreas Schwab Subject: Re: bug#11886: 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell Message-ID: <20120807140507.GB5316@xvii.vinc17.org> References: <874nph2kwd.fsf@xvii.vinc17.org> <20120709160857.GL5847@xvii.vinc17.org> <20120710001815.GR5847@xvii.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6215-vl-r53514 (2012-07-22) Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11886 Cc: 11886@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) I've reported the problem in the Debian BTS for dash: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D683671 Now I remember that the problem is described on: http://www.cons.org/cracauer/sigint.html And contrary to what I've said, zsh is also buggy, but only in the case where the command is *not* the last one (I suppose that this difference is because zsh does an exec for the last command, when possible). On 2012-07-10 08:52:38 +0200, Andreas Schwab wrote: > Vincent Lefevre writes: >=20 > > It seems that the condition is that the command traps the signal. >=20 > Of course. A command that exits on C-c exits on C-c. Actually, no. This was my test that was buggy: ypig:~> cat trap.sh #!/bin/bash trap 'kill -INT $$' INT sleep 3 ypig:~> zsh -c trap.sh; echo foo ^Czsh: exit 130 zsh -c trap.sh foo A correct test, with trap 'trap - INT; kill -INT $$' INT shows that "foo" is not output, as expected. --=20 Vincent Lef=E8vre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 07 13:50:53 2012 Received: (at 11886) by debbugs.gnu.org; 7 Aug 2012 17:50:53 +0000 Received: from localhost ([127.0.0.1]:40150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Synvg-0002KW-Kk for submit@debbugs.gnu.org; Tue, 07 Aug 2012 13:50:53 -0400 Received: from vinc17.pck.nerim.net ([213.41.242.187]:53744 helo=smtp-xvii.vinc17.net) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Synvd-0002KL-DK for 11886@debbugs.gnu.org; Tue, 07 Aug 2012 13:50:50 -0400 Received: by xvii.vinc17.org (Postfix, from userid 1000) id 4975432C009; Tue, 7 Aug 2012 19:42:48 +0200 (CEST) Date: Tue, 7 Aug 2012 19:42:48 +0200 From: Vincent Lefevre To: Andreas Schwab Subject: Re: bug#11886: 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell Message-ID: <20120807174248.GA9926@xvii.vinc17.org> References: <874nph2kwd.fsf@xvii.vinc17.org> <20120709160857.GL5847@xvii.vinc17.org> <20120710001815.GR5847@xvii.vinc17.org> <20120807140507.GB5316@xvii.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20120807140507.GB5316@xvii.vinc17.org> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6215-vl-r53514 (2012-07-22) Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11886 Cc: 11886@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 2012-08-07 16:05:07 +0200, Vincent Lefevre wrote: > I've reported the problem in the Debian BTS for dash: >=20 > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D683671 I think that there is a bug in Emacs too, because I also get problems when the parent shell is bash or ksh. Under X, with bash -c 'emacs24 & emacs24 -nw; wait' typing Ctrl-G in the terminal kills the Emacs that has its own interface. --=20 Vincent Lef=E8vre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 14 01:36:35 2012 Received: (at control) by debbugs.gnu.org; 14 Aug 2012 05:36:35 +0000 Received: from localhost ([127.0.0.1]:54757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T19nv-0005U5-13 for submit@debbugs.gnu.org; Tue, 14 Aug 2012 01:36:35 -0400 Received: from mail-yx0-f172.google.com ([209.85.213.172]:62371) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T19ns-0005Tx-Dc for control@debbugs.gnu.org; Tue, 14 Aug 2012 01:36:33 -0400 Received: by yenm5 with SMTP id m5so3598yen.3 for ; Mon, 13 Aug 2012 22:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=xYGNjMYf1mvVQNiB9KlkPNcqGynBkpzfD8a3o1ddb2s=; b=G3m80nM4MIOZPVXkPdk2cikFlQn6R3uimQKsKVnlsmXrSVc+MhrfhqK0xYb7uY5mO8 KghsUKoWf4N6T+M8pAcvYjIzuy1nEi863Yksoro8FTCOdKhb1wN4WueFNPUbtBzB/Try D4aikJOBQ0d0csqPeXeSk/GenflWH1EXHKdMcKtNgIEhXAdxwQzgO3aqEWlzXjdTL2ic GzbImOrs6U5AXlePPFz/OgTbZqzxf8ZtWSAJ6/Fjxwr71RLsJt3YM2DuSc2tTpiQqjSk kBjbXfyLgfCrDw6TqlCK53ZkaYy6bHN/JHeSU5UekeGzV0kSdz2FvqMIbQuG9OS3PoCw JJxA== Received: by 10.50.106.166 with SMTP id gv6mr9536415igb.46.1344922075676; Mon, 13 Aug 2012 22:27:55 -0700 (PDT) Received: from ulysses ([155.69.19.125]) by mx.google.com with ESMTPS id d4sm18989129iga.14.2012.08.13.22.27.53 (version=SSLv3 cipher=OTHER); Mon, 13 Aug 2012 22:27:54 -0700 (PDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: merge 11886 12038 Date: Tue, 14 Aug 2012 13:27:50 +0800 Message-ID: <87txw6rqjt.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) merge 11886 12038 thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 26 17:37:54 2012 Received: (at 11886-done) by debbugs.gnu.org; 26 Nov 2012 22:37:54 +0000 Received: from localhost ([127.0.0.1]:40639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Td7JJ-0000ly-PH for submit@debbugs.gnu.org; Mon, 26 Nov 2012 17:37:54 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:36949) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Td7JG-0000lo-Ti for 11886-done@debbugs.gnu.org; Mon, 26 Nov 2012 17:37:52 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id F15D9A60003 for <11886-done@debbugs.gnu.org>; Mon, 26 Nov 2012 14:36:04 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0xkGA-CESmmh for <11886-done@debbugs.gnu.org>; Mon, 26 Nov 2012 14:36:04 -0800 (PST) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id A9886A60001 for <11886-done@debbugs.gnu.org>; Mon, 26 Nov 2012 14:36:04 -0800 (PST) Message-ID: <50B3EED0.8040500@cs.ucla.edu> Date: Mon, 26 Nov 2012 14:36:00 -0800 From: Paul Eggert User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: 11886-done@debbugs.gnu.org Subject: Re: 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11886-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) This bug seems to have been fixed in the Emacs trunk, I assume as part of some signal-handling changes, so I'm taking the liberty of marking it as done. From unknown Tue Sep 09 06:10:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 25 Dec 2012 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator