From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: have emacs use SIGTERM to end a process instead of SIGHUP Date: Tue, 09 Jul 2013 14:02:47 +0200 Message-ID: <87txk4c55k.fsf@thinkpad.tsdh.de> References: <51DB3A43.4090909@johnleach.co.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373371442 26643 80.91.229.3 (9 Jul 2013 12:04:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2013 12:04:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 09 14:04:03 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 1UwWeG-00044m-CY for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 14:04:00 +0200 Original-Received: from localhost ([::1]:49046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwWeF-0004jx-V8 for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 08:03:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwWdH-0003L4-RO for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 08:03:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwWdG-0002Vy-A3 for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 08:02:59 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:57961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwWdG-0002Ve-3t for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 08:02:58 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UwWdD-000311-Qo for help-gnu-emacs@gnu.org; Tue, 09 Jul 2013 14:02:55 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Jul 2013 14:02:55 +0200 Original-Received: from tsdh by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Jul 2013 14:02:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:M56AtQS2/6LpBcKWKcVcQWrVqvI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:92021 Archived-At: John Leach writes: Hi John, > 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. I guess you could add a function to `kill-buffer-hook' that calls `delete-process' on the process. Bye, Tassilo