aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaiki Ueno2008-09-27 06:59:43 +0000
committerDaiki Ueno2008-09-27 06:59:43 +0000
commit47e4971262efe22cd8a0ee9a18cffcd67e687841 (patch)
treef515239b36bec841f10babeed868297999c7def3
parentb082f79218f688fc122c784ec85ec0239fef2723 (diff)
downloademacs-47e4971262efe22cd8a0ee9a18cffcd67e687841.tar.gz
emacs-47e4971262efe22cd8a0ee9a18cffcd67e687841.zip
(epg-wait-for-status): Check if there is no pending
status. Reported by Ted Romer <ted@romerfamily.com>.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/epg.el4
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 290b6b227e0..744823b1006 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12008-09-27 Daiki Ueno <ueno@unixuser.org>
2
3 * epg.el (epg-wait-for-status): Check if there is no pending
4 status.
5 Reported by Ted Romer <ted@romerfamily.com>.
6
12008-09-26 Dan Nicolaescu <dann@ics.uci.edu> 72008-09-26 Dan Nicolaescu <dann@ics.uci.edu>
2 8
3 * startup.el (command-line): Turn on menu-bar-mode and 9 * startup.el (command-line): Turn on menu-bar-mode and
diff --git a/lisp/epg.el b/lisp/epg.el
index 75a860933cb..060dc5ce98d 100644
--- a/lisp/epg.el
+++ b/lisp/epg.el
@@ -1168,7 +1168,9 @@ This function is for internal use only."
1168 (setq epg-pending-status-list status-list) 1168 (setq epg-pending-status-list status-list)
1169 (while (and (eq (process-status (epg-context-process context)) 'run) 1169 (while (and (eq (process-status (epg-context-process context)) 'run)
1170 epg-pending-status-list) 1170 epg-pending-status-list)
1171 (accept-process-output (epg-context-process context) 1)))) 1171 (accept-process-output (epg-context-process context) 1))
1172 (if epg-pending-status-list
1173 (epg-context-set-result-for context 'error 'exit))))
1172 1174
1173(defun epg-wait-for-completion (context) 1175(defun epg-wait-for-completion (context)
1174 "Wait until the `epg-gpg-program' process completes." 1176 "Wait until the `epg-gpg-program' process completes."