From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: compile kills background jobs undocumentedly Date: Fri, 30 Jan 2004 16:28:14 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <401AE88E.7020905@yahoo.com> References: <87adc0lfnp.fsf@jidanni.org> <87brq1g96o.fsf@jidanni.org> <87znc79xce.fsf@jidanni.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1075505405 19187 80.91.224.253 (30 Jan 2004 23:30:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2004 23:30:05 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 00:29:53 2004 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 1Ami5B-0004ON-00 for ; Sat, 31 Jan 2004 00:29:53 +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 1Ami4R-0000ye-3s for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Jan 2004 18:29:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ami41-0000ku-VV for bug-gnu-emacs@gnu.org; Fri, 30 Jan 2004 18:28:41 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ami3T-0000WP-Qr for bug-gnu-emacs@gnu.org; Fri, 30 Jan 2004 18:28:38 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ami3T-0000W7-8S for bug-gnu-emacs@gnu.org; Fri, 30 Jan 2004 18:28:07 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Ami3P-0003Sy-00 for ; Sat, 31 Jan 2004 00:28:05 +0100 Original-Received: from 170.207.51.80 ([170.207.51.80]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri Jan 30 23:28:05 2004 Original-Received: from ihs_4664 by 170.207.51.80 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri Jan 30 23:28:05 2004 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 21 Original-X-Complaints-To: usenet@sea.gmane.org Gmane-NNTP-Posting-Host: 170.207.51.80 User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us 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:6835 Dan Jacobson wrote: > Muhahaha, this is how one can have a compile job not get killed, and > be able to do other compile jobs too: > $ cat makefile > book: > trap '' 1; gv book.pdf& > It should be documented. Really? trap is a shell built-in; it makes the shell that runs the Makefile command ignore the HUP signal, as does the gv process. But the Emacs kill-compilation command and the compile-internal utility call interrupt-process, which sends the INT signal; compile-internal then calls delete-process, which calls Fkill_process, which sends a QUIT signal. So I don't see why ignoring HUP would have any effect on that sequence of actions. -- Kevin Rodgers