changeset 103139:5e92db883c9f

Fix timing problem of Bug#2412. (epg-wait-for-completion): Sleep after the process exits, to allow process-filter to run (Bug#2412).
author Daiki Ueno <ueno@unixuser.org>
date Sun, 03 May 2009 22:27:40 +0000
parents 55823cc572a6
children ba681b91f716
files lisp/ChangeLog lisp/epg.el
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sun May 03 05:46:08 2009 +0000
+++ b/lisp/ChangeLog	Sun May 03 22:27:40 2009 +0000
@@ -1,5 +1,8 @@
 2009-05-03  Daiki Ueno  <ueno@unixuser.org>
 
+	* epg.el (epg-wait-for-completion): Sleep after the process
+	exits, to allow process-filter to run (Bug#2412).
+
 	* epa.el (epa--read-signature-type): Fix typo.
 
 2009-05-02  Glenn Morris  <rgm@gnu.org>
--- a/lisp/epg.el	Sun May 03 05:46:08 2009 +0000
+++ b/lisp/epg.el	Sun May 03 22:27:40 2009 +0000
@@ -1175,7 +1175,8 @@
 (defun epg-wait-for-completion (context)
   "Wait until the `epg-gpg-program' process completes."
   (while (eq (process-status (epg-context-process context)) 'run)
-    (accept-process-output (epg-context-process context) 1)))
+    (accept-process-output (epg-context-process context) 1))
+  (sleep-for 0.1))
 
 (defun epg-reset (context)
   "Reset the CONTEXT."