emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 6fa44f9: Avoid an error on exit in a build without


From: Eli Zaretskii
Subject: [Emacs-diffs] master 6fa44f9: Avoid an error on exit in a build without threads
Date: Thu, 6 Dec 2018 12:35:49 -0500 (EST)

branch: master
commit 6fa44f9696801eeed6a4af29549cedd5c570785a
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Avoid an error on exit in a build without threads
    
    * lisp/simple.el (list-processes--refresh): Avoid signaling an
    error in a build --without-threads.  (Bug#33629)
---
 lisp/simple.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index e192238..db59b9f 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4006,7 +4006,9 @@ Also, delete any process that is exited or signaled."
                  (tty (or (process-tty-name p) "--"))
                  (thread
                    (cond
-                    ((null (process-thread p)) "--")
+                    ((or
+                      (null (process-thread p))
+                      (not (fboundp 'thread-name))) "--")
                     ((eq (process-thread p) main-thread) "Main")
                     ((thread-name (process-thread p)))))
                  (cmd



reply via email to

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