emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/mpv 79e01bf89b 35/50: Remove stale socket files when mpv p


From: ELPA Syncer
Subject: [nongnu] elpa/mpv 79e01bf89b 35/50: Remove stale socket files when mpv process is gone
Date: Tue, 28 Dec 2021 00:58:43 -0500 (EST)

branch: elpa/mpv
commit 79e01bf89b606cad470575cc4a5c77f0c6e4612f
Author: Johann Klähn <johann@jklaehn.de>
Commit: Johann Klähn <johann@jklaehn.de>

    Remove stale socket files when mpv process is gone
---
 mpv.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mpv.el b/mpv.el
index d2fc082b7d..db6375552c 100644
--- a/mpv.el
+++ b/mpv.el
@@ -112,6 +112,9 @@ prepended to ARGS."
      mpv--process
      (lambda (process _event)
        (when (memq (process-status process) '(exit signal))
+         (mpv-kill)
+         (when (file-exists-p socket)
+           (with-demoted-errors (delete-file socket)))
          (run-hooks 'mpv-on-exit-hook))))
     (while (and (mpv-live-p) (not (file-exists-p socket)))
       (sleep-for 0.05))



reply via email to

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