From exidor@nimbus.superior.net  Wed Oct  9 07:38:06 1996
Received: from nimbus.superior.net (root@nimbus.superior.net [206.153.96.1])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id HAA28097
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 9 Oct 1996 07:38:05 -0700 (PDT)
Received: (from exidor@localhost) by nimbus.superior.net (8.7.6/8.7.5) id KAA26945; Wed, 9 Oct 1996 10:38:03 -0400 (EDT)
Message-Id: <199610091438.KAA26945@nimbus.superior.net>
Date: Wed, 9 Oct 1996 10:38:03 -0400 (EDT)
From: Christopher Masto <exidor@superior.net>
Reply-To: exidor@superior.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: system("emacs") shows signal handling problem
X-Send-Pr-Version: 3.2

>Number:         1751
>Category:       kern
>Synopsis:       system() call appears to be broken re: signal handling
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct  9 07:40:01 PDT 1996
>Closed-Date:    Sat Oct 12 12:36:38 MET DST 1996
>Last-Modified:  Sat Oct 12 12:37:40 MET DST 1996
>Originator:     Christopher Masto
>Release:        FreeBSD 2.1.0-RELEASE i386
>Organization:
Superior Net
>Environment:

Any environment.

>Description:

Several programs which spawn an editor (trn, elm, etc.) seemed to have
a problem when using emacs as the editor.  Pressing C-g (abort) in
emacs caused the program to re-take control of the tty, with emacs
still running but unusable.  This problem was also mentioned in
bin/1206 as a bug in '/bin/sh -c emacs'.  It turns out that it isn't
/bin/sh at all, but in fact anything that uses the system() call.

>How-To-Repeat:

Compile and run the following:

main()
{ system("emacs -nw") }

When emacs starts, press C-g.  It will dump you back to the shell, usually
with the terminal modes screwed up, and emacs will still show up in a 'ps'.
(And it will occasionally write "garbage collecting" to the terminal)

>Fix:
	
	

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sat Oct 12 12:36:38 MET DST 1996 
State-Changed-Why:  
This is a duplicate for PR # 1206. 

>Unformatted:
 
