(epg-wait-for-status): Check if there is no pending
authorDaiki Ueno <ueno@unixuser.org>
Sat, 27 Sep 2008 06:59:43 +0000 (06:59 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Sat, 27 Sep 2008 06:59:43 +0000 (06:59 +0000)
status.
Reported by Ted Romer <ted@romerfamily.com>.

lisp/ChangeLog
lisp/epg.el

index 290b6b2..744823b 100644 (file)
@@ -1,3 +1,9 @@
+2008-09-27  Daiki Ueno  <ueno@unixuser.org>
+
+       * epg.el (epg-wait-for-status): Check if there is no pending
+       status.
+       Reported by Ted Romer <ted@romerfamily.com>.
+
 2008-09-26  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * startup.el (command-line): Turn on menu-bar-mode and
index 75a8609..060dc5c 100644 (file)
@@ -1168,7 +1168,9 @@ This function is for internal use only."
     (setq epg-pending-status-list status-list)
     (while (and (eq (process-status (epg-context-process context)) 'run)
                epg-pending-status-list)
-      (accept-process-output (epg-context-process context) 1))))
+      (accept-process-output (epg-context-process context) 1))
+    (if epg-pending-status-list
+       (epg-context-set-result-for context 'error 'exit))))
 
 (defun epg-wait-for-completion (context)
   "Wait until the `epg-gpg-program' process completes."