From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: compile kills background jobs undocumentedly Date: Mon, 22 Dec 2003 05:19:59 +0800 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87brq1g96o.fsf@jidanni.org> References: <87adc0lfnp.fsf@jidanni.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1072050830 18089 80.91.224.253 (21 Dec 2003 23:53:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Dec 2003 23:53:50 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 22 00:53:48 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AYDON-0002bU-00 for ; Mon, 22 Dec 2003 00:53:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AYELa-0005dR-Ez for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Dec 2003 19:54:58 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AYELW-0005dF-T4 for bug-gnu-emacs@gnu.org; Sun, 21 Dec 2003 19:54:54 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AYEL0-0005Ia-KS for bug-gnu-emacs@gnu.org; Sun, 21 Dec 2003 19:54:53 -0500 Original-Received: from [204.74.68.40] (helo=frodo.hserus.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AYEL0-0005HU-5T for bug-gnu-emacs@gnu.org; Sun, 21 Dec 2003 19:54:22 -0500 Original-Received: from tc218-187-73-156.2-3.pl.apol.com.tw ([218.187.73.156]:34664 helo=jidanni.org) by frodo.hserus.net with asmtp (Cipher TLSv1:RC4-SHA:128) (Exim 4.30 #2) id 1AYDNV-000DPN-4h by authid with plain for ; Mon, 22 Dec 2003 05:22:54 +0530 Original-Received: from jidanni by jidanni.org with local (Exim 4.24) id 1AYAzX-00023p-0y for bug-gnu-emacs@gnu.org; Mon, 22 Dec 2003 05:19:59 +0800 Original-To: bug-gnu-emacs@gnu.org In-Reply-To: <87adc0lfnp.fsf@jidanni.org> (Dan Jacobson's message of "Mon, 30 Jun 2003 05:47:38 +0800") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6345 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6345 Geez, the pains one must go to in a shell script run by the compile command, to avoid any background jobs getting terminated when we reach the bottom. #didn't work: sleep 3&&beep& #("beep" could be any command.) sleep 3&&beep&disown (sleep 3&&beep)& (sleep 3&&beep)&disown nohup sh -c 'sleep 3&&beep'& #worked: echo 'sleep 3&&beep'|nohup sh& nohup sh -c 'sleep 3&&beep&' echo 'sleep 3&&beep&'|nohup sh nohup sh< OK, but at least explain what you are doing in C-h f compile, and Info.