help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: break signal on Mac OS X doesn't work


From: Barry Margolin
Subject: Re: break signal on Mac OS X doesn't work
Date: Fri, 24 Dec 2004 11:53:42 -0500
User-agent: MT-NewsWatcher/3.4 (PPC Mac OS X)

In article <mailman.8535.1103860328.27204.help-gnu-emacs@gnu.org>,
 David Goodger <goodger@python.org> wrote:

> System identification: I'm running GNU Emacs 21.3.50.1 on Mac OS X
> 10.3.7.  It runs in a window that starts out saying "Terminal" in the
> title bar, before Emacs takes over.  My .emacs file contains this
> setup code:
> 
> ; shell mode
> (setq explicit-shell-file-name "bash")
> (setq explicit-bash-args '("--login" "--noediting" "-i"))
> (add-hook 'shell-mode-hook 'my-shell-mode-hook)
> (defun my-shell-mode-hook ()
>    "Customize shell-mode"
>    (define-key shell-mode-map "\C-cf" 'font-lock-mode)
>    (define-key shell-mode-map '[C-return] 'shell-enter-and-resync-dirs)
>    (setq tab-width 8)
>    (setq font-lock-mode nil))
> 
> The problem is when I open a shell ("M-x shell"), I can't stop a
> process with a BREAK signal (typing C-c C-c or choosing BREAK from the
> Signals menu).  I see "C-c C-c" in the shell window, but the process
> doesn't halt.
> 
> Any clues to what's going on here?  Thanks in advance.

I've seen the same thing, but only when the command I'm trying to 
interrupt is setuid.  I posted here (or maybe in a comp.sys.mac group) 
months ago and never got a useful answer.

The workaround is to type "C-q C-c RET" to send a literal Control-C 
rather than a signal.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

[Prev in Thread] Current Thread [Next in Thread]