From owner-freebsd-bugs Wed Oct 9 07:40:05 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA28208 for bugs-outgoing; Wed, 9 Oct 1996 07:40:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA28202; Wed, 9 Oct 1996 07:40:03 -0700 (PDT) Resent-Date: Wed, 9 Oct 1996 07:40:03 -0700 (PDT) Resent-Message-Id: <199610091440.HAA28202@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, exidor@superior.net 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 ; 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 Reply-To: exidor@superior.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/1751: system("emacs") shows signal handling problem Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 9 07:40:01 PDT 1996 >Last-Modified: >Originator: Christopher Masto >Organization: Superior Net >Release: FreeBSD 2.1.0-RELEASE i386 >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: >Audit-Trail: >Unformatted: