aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2007-06-04 23:15:08 +0000
committerChong Yidong2007-06-04 23:15:08 +0000
commit5fbd207936f9d2d00aec9504af9b3da3a82764c5 (patch)
treee3327bf2eb50328182a23a6df759f0e95ad9fe6a
parent7bbb629a9761f72def89dc4cc18e5a57596d1291 (diff)
downloademacs-5fbd207936f9d2d00aec9504af9b3da3a82764c5.tar.gz
emacs-5fbd207936f9d2d00aec9504af9b3da3a82764c5.zip
(tq-queue-pop): Stifle error when a process has died and we are trying
to send a signal to it.
-rw-r--r--lisp/emacs-lisp/tq.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/tq.el b/lisp/emacs-lisp/tq.el
index b12c21b6730..f20015fd720 100644
--- a/lisp/emacs-lisp/tq.el
+++ b/lisp/emacs-lisp/tq.el
@@ -100,8 +100,9 @@ to a tcp server on another machine."
100(defun tq-queue-pop (tq) 100(defun tq-queue-pop (tq)
101 (setcar tq (cdr (car tq))) 101 (setcar tq (cdr (car tq)))
102 (let ((question (tq-queue-head-question tq))) 102 (let ((question (tq-queue-head-question tq)))
103 (when question 103 (condition-case nil
104 (process-send-string (tq-process tq) question))) 104 (process-send-string (tq-process tq) question)
105 (error nil)))
105 (null (car tq))) 106 (null (car tq)))
106 107
107(defun tq-enqueue (tq question regexp closure fn &optional delay-question) 108(defun tq-enqueue (tq question regexp closure fn &optional delay-question)