Fix timing problem of Bug#2412.

(epg-wait-for-completion): Sleep after the process
exits, to allow process-filter to run (Bug#2412).
This commit is contained in:
Daiki Ueno
2009-05-03 22:27:40 +00:00
parent 50f13b3e55
commit de22b81de3
2 changed files with 5 additions and 1 deletions

View 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>

View 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."