all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* have emacs use SIGTERM to end a process instead of SIGHUP
@ 2013-07-08 22:16 John Leach
  2013-07-09 12:02 ` Tassilo Horn
  0 siblings, 1 reply; 6+ messages in thread
From: John Leach @ 2013-07-08 22:16 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-07-15 10:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.586.1373322303.12400.help-gnu-emacs@gnu.org>
2013-07-09 15:19 ` have emacs use SIGTERM to end a process instead of SIGHUP Barry Margolin
2013-07-12 11:03   ` John Leach
2013-07-08 22:16 John Leach
2013-07-09 12:02 ` Tassilo Horn
2013-07-12 11:01   ` John Leach
2013-07-15 10:46     ` Tassilo Horn

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.