From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kin Cho Newsgroups: gmane.emacs.help Subject: Re: kill subjobs in shell buffer kills always the shell itself Date: 10 Mar 2004 08:48:27 -0800 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7i8yi8bqck.fsf@neoscale.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079053829 3087 80.91.224.253 (12 Mar 2004 01:10:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Mar 2004 01:10:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 12 02:10:19 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1bBr-0007Mg-00 for ; Fri, 12 Mar 2004 02:10:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1aAM-0002CG-7g for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Mar 2004 19:04:42 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!12.24.46.85!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 12.24.46.85 Original-X-Trace: news.uni-berlin.de 1078937308 67341958 I 12.24.46.85 ([151019]) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:121558 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17547 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17547 That's because emacs knows nothing about your subjob. To kill you subjob, send it a normal shell signal character such as ^C, like this: C-q C-c RET -kin leo writes: > in a shell buffer when i try to interrrupt a subjob > (comint-interrupt-subjob) the shell itself (bash) is awlays > killed. same problem with `comint-kill-subkob'. > > i have played around with the var `comint-ptyp', but that doesn't help: > nil results in killing the bash, t results in nothing happens apart > from the text `ESC x c o m i n t - i n t e r r u p t - s u b j o b' > appears in the buffer. %-| > > i have this problem in emacs 21.3.50 on mac os and in 21.1 on windows 2k. > > anybody any idea? > > thanks, leo