From owner-cvs-bin Sat Feb 7 09:53:48 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA08287 for cvs-bin-outgoing; Sat, 7 Feb 1998 09:53:48 -0800 (PST) (envelope-from owner-cvs-bin) Received: from cons.org (knight.cons.org [194.233.237.86]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA08260; Sat, 7 Feb 1998 09:53:41 -0800 (PST) (envelope-from cracauer@cons.org) Received: (from cracauer@localhost) by cons.org (8.8.5/8.7.3) id SAA22967; Sat, 7 Feb 1998 18:41:36 +0100 (CET) Message-ID: <19980207184135.12964@cons.org> Date: Sat, 7 Feb 1998 18:41:35 +0100 From: Martin Cracauer To: Bruce Evans Cc: cracauer@cons.org, cracauer@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Subject: Re: cvs commit: src/bin/sh jobs.c References: <199802071645.DAA14279@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81 In-Reply-To: <199802071645.DAA14279@godzilla.zeta.org.au>; from Bruce Evans on Sun, Feb 08, 1998 at 03:45:59AM +1100 Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Another difference with subshells. While your versions runs the first test fine (shell doesn't exit while emacs runs, but is interruptable afterwards), it fails on the second, the script is terminated when SIGINT is delivered to emacs. The problem here is that it doesn't always ignore before it forks a foreground process. #!./testshell ./emacs -nw while : ; do foo=1 ; done #!./testshell ( ( ./emacs -nw while : ; do foo=1 ; done ) while : ; do foo=1 ; done ) while : ; do foo=1 ; done -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer cracauer@wavehh.hanse.de (batched, preferred for large mails) Tel.: (daytime) +4940 41478712 Fax.: (daytime) +4940 41478715 Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536 Paper: (private) Waldstrasse 200, 22846 Norderstedt, Germany