help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: have emacs use SIGTERM to end a process instead of SIGHUP


From: Tassilo Horn
Subject: Re: have emacs use SIGTERM to end a process instead of SIGHUP
Date: Tue, 09 Jul 2013 14:02:47 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

John Leach <john@johnleach.co.uk> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]