diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2007-06-04 23:15:08 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2007-06-04 23:15:08 +0000 |
commit | 5fbd207936f9d2d00aec9504af9b3da3a82764c5 (patch) | |
tree | e3327bf2eb50328182a23a6df759f0e95ad9fe6a /lisp/emacs-lisp/tq.el | |
parent | 7bbb629a9761f72def89dc4cc18e5a57596d1291 (diff) | |
download | emacs-5fbd207936f9d2d00aec9504af9b3da3a82764c5.tar.gz |
(tq-queue-pop): Stifle error when a process has died and we are trying
to send a signal to it.
Diffstat (limited to 'lisp/emacs-lisp/tq.el')
-rw-r--r-- | lisp/emacs-lisp/tq.el | 5 |
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." (defun tq-queue-pop (tq) (setcar tq (cdr (car tq))) (let ((question (tq-queue-head-question tq))) - (when question - (process-send-string (tq-process tq) question))) + (condition-case nil + (process-send-string (tq-process tq) question) + (error nil))) (null (car tq))) (defun tq-enqueue (tq question regexp closure fn &optional delay-question) |