diff options
| author | Daiki Ueno | 2009-05-03 22:27:40 +0000 |
|---|---|---|
| committer | Daiki Ueno | 2009-05-03 22:27:40 +0000 |
| commit | de22b81de3405aeb7b341b80531e5627ee2a1277 (patch) | |
| tree | 9eb8dbb3a88f1fdab3680f99293e6891e9311fd1 | |
| parent | 50f13b3e5595ab9437b4d92d1182391151642538 (diff) | |
| download | emacs-de22b81de3405aeb7b341b80531e5627ee2a1277.tar.gz emacs-de22b81de3405aeb7b341b80531e5627ee2a1277.zip | |
Fix timing problem of Bug#2412.
(epg-wait-for-completion): Sleep after the process
exits, to allow process-filter to run (Bug#2412).
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/epg.el | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 791bd01f137..aef6b360d23 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-05-03 Daiki Ueno <ueno@unixuser.org> | 1 | 2009-05-03 Daiki Ueno <ueno@unixuser.org> |
| 2 | 2 | ||
| 3 | * epg.el (epg-wait-for-completion): Sleep after the process | ||
| 4 | exits, to allow process-filter to run (Bug#2412). | ||
| 5 | |||
| 3 | * epa.el (epa--read-signature-type): Fix typo. | 6 | * epa.el (epa--read-signature-type): Fix typo. |
| 4 | 7 | ||
| 5 | 2009-05-02 Glenn Morris <rgm@gnu.org> | 8 | 2009-05-02 Glenn Morris <rgm@gnu.org> |
diff --git a/lisp/epg.el b/lisp/epg.el index e96258fe909..3c80ef9db77 100644 --- a/lisp/epg.el +++ b/lisp/epg.el | |||
| @@ -1175,7 +1175,8 @@ This function is for internal use only." | |||
| 1175 | (defun epg-wait-for-completion (context) | 1175 | (defun epg-wait-for-completion (context) |
| 1176 | "Wait until the `epg-gpg-program' process completes." | 1176 | "Wait until the `epg-gpg-program' process completes." |
| 1177 | (while (eq (process-status (epg-context-process context)) 'run) | 1177 | (while (eq (process-status (epg-context-process context)) 'run) |
| 1178 | (accept-process-output (epg-context-process context) 1))) | 1178 | (accept-process-output (epg-context-process context) 1)) |
| 1179 | (sleep-for 0.1)) | ||
| 1179 | 1180 | ||
| 1180 | (defun epg-reset (context) | 1181 | (defun epg-reset (context) |
| 1181 | "Reset the CONTEXT." | 1182 | "Reset the CONTEXT." |