GNU bug report logs - #11886
24.1; Ctrl-G in an emacs running in a terminal sends a SIGINT to the parent shell

Previous Next

Package: emacs;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Mon, 9 Jul 2012 12:19:01 UTC

Severity: normal

Merged with 12038

Found in version 24.1

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 11886 <at> debbugs.gnu.org (full text, mbox):

From: Vincent Lefevre <vincent <at> vinc17.net>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 11886 <at> debbugs.gnu.org
Subject: Re: 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
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

-- 
Vincent Lefèvre <vincent <at> vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




This bug report was last modified 12 years and 261 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.