From 2a0db7acb0c740a9cfa673ab096c316b9ac9e3d5 Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Sun, 1 Jan 2006 02:09:00 +0000 Subject: emms-player-mpd: Make sure the process gets closed autommatically when exiting Emacs. darcs-hash:20060101020942-1bfb2-315f558879b5e1989e8c82476b0342edf9142f8c.gz --- emms-player-mpd.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emms-player-mpd.el b/emms-player-mpd.el index 5c079ff..f92c065 100644 --- a/emms-player-mpd.el +++ b/emms-player-mpd.el @@ -196,7 +196,10 @@ and errors." (set-process-sentinel emms-player-mpd-process 'emms-player-mpd-sentinel) (set-process-filter emms-player-mpd-process - 'emms-player-mpd-filter))) + 'emms-player-mpd-filter) + (if (fboundp 'set-process-query-on-exit-flag) + (set-process-query-on-exit-flag emms-player-mpd-process nil) + (process-kill-without-query emms-player-mpd-process)))) (defun emms-player-mpd-send (command) "Send the given COMMAND to the MusicPD server." -- cgit v1.2.3