]> code.delx.au - gnu-emacs/commitdiff
Fix timing problem of Bug#2412.
authorDaiki Ueno <ueno@unixuser.org>
Sun, 3 May 2009 22:27:40 +0000 (22:27 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Sun, 3 May 2009 22:27:40 +0000 (22:27 +0000)
(epg-wait-for-completion): Sleep after the process
exits, to allow process-filter to run (Bug#2412).

lisp/ChangeLog
lisp/epg.el

index 791bd01f13714fd519f6c2b9e1cf0b67ec7a01a0..aef6b360d2352e625eef8bec4565a3c61199bdb2 100644 (file)
@@ -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>
index e96258fe9091e483a8616c0b30f1ec653757d24f..3c80ef9db7741a06d722ee01e9dad7b273b6c3c0 100644 (file)
@@ -1175,7 +1175,8 @@ This function is for internal use only."
 (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."