From nobody  Mon Mar  3 06:17:48 1997
Received: (from nobody@localhost)
          by freefall.freebsd.org (8.8.5/8.8.5) id GAA02197;
          Mon, 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
Subject: "sh -c 'emacs-nw'" then ctrl-g crashes sh
X-Send-Pr-Version: www-1.0

>Number:         2856
>Category:       bin
>Synopsis:       "sh -c 'emacs-nw'" then ctrl-g crashes sh
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    steve
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar  3 06:20:00 PST 1997
>Closed-Date:    Mon Mar 3 19:06:06 PST 1997
>Last-Modified:  Mon Mar  3 19:07:13 PST 1997
>Originator:     Peter Radcliffe
>Release:        2.1.5-RELEASE
>Organization:
pir
>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:

>Release-Note:
>Audit-Trail:

From: j@uriah.heep.sax.de (J Wunsch)
To: pir@pir.net
Cc: freebsd-gnats-submit@freebsd.org, sprice@hiwaay.net (Steve Price)
Subject: Re: bin/2856: "sh -c 'emacs-nw'" then ctrl-g crashes sh
Date: Mon, 3 Mar 1997 20:20:26 +0100

 As pir@pir.net wrote:
 
 > 
 > >Number:         2856
 > >Category:       bin
 > >Synopsis:       "sh -c 'emacs-nw'" then ctrl-g crashes sh
 
 Dup for PR # 1206.
 
 Steve, i'd really like to see the fix in 2.2.
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Mon Mar 3 19:06:06 PST 1997 
State-Changed-Why:  
Duplicate of bin/1206. 
>Unformatted:
