From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vincent Lefevre Newsgroups: gmane.emacs.bugs Subject: bug#11886: 24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell Date: Tue, 10 Jul 2012 02:18:15 +0200 Message-ID: <20120710001815.GR5847@xvii.vinc17.org> References: <874nph2kwd.fsf@xvii.vinc17.org> <20120709160857.GL5847@xvii.vinc17.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1341879534 7325 80.91.229.3 (10 Jul 2012 00:18:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Jul 2012 00:18:54 +0000 (UTC) Cc: 11886@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 10 02:18:53 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SoOAF-0005rg-9b for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Jul 2012 02:18:51 +0200 Original-Received: from localhost ([::1]:35352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoOAE-0000bd-91 for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jul 2012 20:18:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoOAA-0000ay-RY for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 20:18:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoOA8-0007M4-WC for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 20:18:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoOA8-0007Lx-SI for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 20:18:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SoOFG-0001je-4o for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2012 20:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincent Lefevre Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Jul 2012 00:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11886 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11886-submit@debbugs.gnu.org id=B11886.13418798166637 (code B ref 11886); Tue, 10 Jul 2012 00:24:02 +0000 Original-Received: (at 11886) by debbugs.gnu.org; 10 Jul 2012 00:23:36 +0000 Original-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 Original-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 Original-Received: by xvii.vinc17.org (Postfix, from userid 1000) id 2952438C037; Tue, 10 Jul 2012 02:18:15 +0200 (CEST) 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) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61777 Archived-At: 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)