Date: Sat, 7 Feb 1998 18:41:35 +0100 From: Martin Cracauer <cracauer@cons.org> To: Bruce Evans <bde@zeta.org.au> 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 Message-ID: <19980207184135.12964@cons.org> In-Reply-To: <199802071645.DAA14279@godzilla.zeta.org.au>; from Bruce Evans on Sun, Feb 08, 1998 at 03:45:59AM %2B1100 References: <199802071645.DAA14279@godzilla.zeta.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <cracauer@cons.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980207184135.12964>