From owner-freebsd-bugs Mon Mar 3 06:20:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA02419 for bugs-outgoing; Mon, 3 Mar 1997 06:20:09 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA02391; Mon, 3 Mar 1997 06:20:04 -0800 (PST) Resent-Date: Mon, 3 Mar 1997 06:20:04 -0800 (PST) Resent-Message-Id: <199703031420.GAA02391@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.GAA02197;Mon; (8.8.5/8.8.5);, 3 Mar 1997 06:17:48.-0800 (PST) Message-Id: <199703031417.GAA02197@freefall.freebsd.org> Date: Mon, 3 Mar 1997 06:17:48 -0800 (PST) From: pir@pir.net To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: bin/2856: "sh -c 'emacs-nw'" then ctrl-g crashes sh Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2856 >Category: bin >Synopsis: "sh -c 'emacs-nw'" then ctrl-g crashes sh >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 3 06:20:00 PST 1997 >Last-Modified: >Originator: Peter Radcliffe >Organization: pir >Release: 2.1.5-RELEASE >Environment: FreeBSD moek 2.1.5-RELEASE FreeBSD 2.1.5-RELEASE #0: Sat Mar 1 15:09:54 GMT 1997 pir@moek:/usr/src/sys/compile/MOEK i386 >Description: I've tested this with sh from -current and emacs 19.34.1 If you run sh -c 'emacs -nw' and then press control-g (at any stage in editing) it appears that sh crashes, leaving emacs looping on an error trying to access it's tty. tcsh or bash -c 'emacs -nw' does not exibit this problem. ktrace sh -c 'emacs -nw' gives: [...] 22003 sh NAMI "/usr/local/bin/emacs" 22003 sh RET stat 0 22003 sh CALL break(0x55ffc) 22003 sh RET break 0 22003 sh CALL break(0x56ffc) 22003 sh RET break 0 22003 sh CALL fork 22003 sh RET fork 22004/0x55f4 22003 sh CALL getpgrp 22003 sh RET getpgrp 22003/0x55f3 22003 sh CALL wait4(0xffffffff,0xefbfd5d4,0x2,0) 22003 sh PSIG SIGINT SIG_DFL Messy signal handling somewhere ? >How-To-Repeat: sh -c 'emacs -nw' Press control-g >Fix: >Audit-Trail: >Unformatted: