aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2007-05-30 14:06:39 +0000
committerMiles Bader2007-05-30 14:06:39 +0000
commit7a781a5480b9a1f55d28a76e1d1f89aaa2421f97 (patch)
treecde11f8e1eaeeda830d30e51cb93033114a8bc49
parent57669cf1d3f0c1a7634b0df1fbd1d17141644c75 (diff)
downloademacs-7a781a5480b9a1f55d28a76e1d1f89aaa2421f97.tar.gz
emacs-7a781a5480b9a1f55d28a76e1d1f89aaa2421f97.zip
Fix tq.el edge case
(tq-queue-pop): Stifle error when a process has died and we are trying to send a signal to it. The program using tq.el should periodically check to see whether the process has died and react appropriately -- this is not the responsibility of tq.el, and is consistent with the rest of the tq.el source code. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-779 Creator: Michael Olson <mwolson@gnu.org>
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/emacs-lisp/tq.el5
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d7b3a105d60..9a79d4a0b55 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12007-05-30 Michael Olson <mwolson@gnu.org>
2
3 * emacs-lisp/tq.el (tq-queue-pop): Stifle error when a process has
4 died and we are trying to send a signal to it. The program using
5 tq.el should periodically check to see whether the process has
6 died and react appropriately -- this is not the responsibility of
7 tq.el, and is consistent with the rest of the tq.el source code.
8
12007-05-29 Martin Rudalics <rudalics@gmx.at> 92007-05-29 Martin Rudalics <rudalics@gmx.at>
2 10
3 * textmodes/table.el (table--point-entered-cell-function) 11 * textmodes/table.el (table--point-entered-cell-function)
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)