diff options
| author | Chong Yidong | 2007-06-04 23:15:08 +0000 |
|---|---|---|
| committer | Chong Yidong | 2007-06-04 23:15:08 +0000 |
| commit | 5fbd207936f9d2d00aec9504af9b3da3a82764c5 (patch) | |
| tree | e3327bf2eb50328182a23a6df759f0e95ad9fe6a | |
| parent | 7bbb629a9761f72def89dc4cc18e5a57596d1291 (diff) | |
| download | emacs-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.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." | |||
| 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) |