From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Leach Newsgroups: gmane.emacs.help Subject: Re: have emacs use SIGTERM to end a process instead of SIGHUP Date: Fri, 12 Jul 2013 12:03:19 +0100 Message-ID: <51DFE277.2030206@johnleach.co.uk> References: (sfid-20130709_152018_274619_8416D71C) NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1373627022 24597 80.91.229.3 (12 Jul 2013 11:03:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jul 2013 11:03:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 13:03:43 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uxb8X-0007F6-4i for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 13:03:41 +0200 Original-Received: from localhost ([::1]:34665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxb8W-0002HL-LN for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 07:03:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxb8E-0002ER-B8 for help-gnu-emacs@gnu.org; Fri, 12 Jul 2013 07:03:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uxb8D-0004WL-Ch for help-gnu-emacs@gnu.org; Fri, 12 Jul 2013 07:03:22 -0400 Original-Received: from mycogen.trantor.org.uk ([109.107.38.252]:59899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxb8D-0004WC-7K for help-gnu-emacs@gnu.org; Fri, 12 Jul 2013 07:03:21 -0400 Original-Received: from [192.168.88.5] (cpc7-brad19-2-0-cust107.barn.cable.virginmedia.com [77.97.184.108]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mycogen.trantor.org.uk (Postfix) with ESMTPSA id E8EF6640FA for ; Fri, 12 Jul 2013 11:03:19 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 In-Reply-To: (sfid-20130709_152018_274619_8416D71C) X-Enigmail-Version: 1.5.1 OpenPGP: id=5C06D153 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 109.107.38.252 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92078 Archived-At: On 09/07/13 16:19, Barry Margolin wrote: > In article , > John Leach wrote: > >> Hi, >> >> I'm starting a process using start-process-shell-command, but the >> command I'm running doesn't exit when it receives a SIGHUP (it reloads >> it's configs or something) so I end up with orphaned processes hanging >> around when I close the buffer or exit emacs. > > That's really strange behavior for a non-daemon process. Wouldn't it > have the same problem if you ran it from a normal terminal and > disconnected? > > SIGHUP is the expected signal when a process's terminal goes away. > true - it's probably a good idea for me to submit a patch to this program to have it behave properly. John.