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: have emacs use SIGTERM to end a process instead of SIGHUP Date: Mon, 08 Jul 2013 23:16:35 +0100 Message-ID: <51DB3A43.4090909@johnleach.co.uk> 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 1373322317 14467 80.91.229.3 (8 Jul 2013 22:25:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jul 2013 22:25:17 +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 00:25:17 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 1UwJrs-00068I-U8 for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 00:25:13 +0200 Original-Received: from localhost ([::1]:44475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwJrs-00076K-Fs for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Jul 2013 18:25:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwJjc-000095-GI for help-gnu-emacs@gnu.org; Mon, 08 Jul 2013 18:16:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwJjZ-0008Ad-GF for help-gnu-emacs@gnu.org; Mon, 08 Jul 2013 18:16:40 -0400 Original-Received: from mycogen.trantor.org.uk ([109.107.38.252]:46362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwJjZ-0008AT-BG for help-gnu-emacs@gnu.org; Mon, 08 Jul 2013 18:16:37 -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 4ECF363C30 for ; Mon, 8 Jul 2013 22:16:35 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 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-Mailman-Approved-At: Mon, 08 Jul 2013 18:25:02 -0400 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:92018 Archived-At: 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. How can I have emacs send a SIGTERM instead of a SIGHUP to the processes it manages? fyi, I define a function to start the process like this: > (defun nanoc-server () > "Runs a nanoc web server" > (interactive) > (let ((default-directory (repository-root))) > (let ((process-connection-type t)) > (start-process-shell-command "nanoc-server" "nanoc-server" "bundle exec nanoc view -p 3005 -C") > ))) Thanks in advance for any help, John. -- http://johnleach.co.uk