unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Daiki Ueno <ueno@unixuser.org>
To: Sven Joachim <svenjoac@gmx.de>
Cc: Chong Yidong <cyd@stupidchicken.com>, 2412@emacsbugs.donarmstrong.com
Subject: bug#2412: spurious "Sign failed" errors
Date: Sun, 03 May 2009 14:43:42 +0900	[thread overview]
Message-ID: <87ab5uspv5.fsf@broken.deisui.org> (raw)
In-Reply-To: <87r5zsbf65.fsf@turtle.gmx.de> (Sven Joachim's message of "Thu, 16 Apr 2009 20:56:50 +0200")

[-- Attachment #1: Type: text/plain, Size: 508 bytes --]

Hi,

Sven Joachim <svenjoac@gmx.de> writes:

>>> could you please try (setq epg-debug t) and show me the contents of
>>> " *epg-debug*" buffer next time you see the error?

> Looks innocent enough to me:

> | [GNUPG:] SIG_CREATED D 17 2 01 1239906974 9AACBC0C69283380715D3788ECB679C787E9AABE
> | [GNUPG:] SIG_CREATED D 17 2 01 1239906984 9AACBC0C69283380715D3788ECB679C787E9AABE

Thanks.  It looks innocent for me too, but now I can suspect a timing
problem.  Could you please try the patch attached below?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: epg.el.diff --]
[-- Type: text/x-diff, Size: 533 bytes --]

diff --git a/lisp/epg.el b/lisp/epg.el
index e96258f..3c80ef9 100644
--- a/lisp/epg.el
+++ b/lisp/epg.el
@@ -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."

[-- Attachment #3: Type: text/plain, Size: 25 bytes --]


Regards,
-- 
Daiki Ueno

  reply	other threads:[~2009-05-03  5:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-16  4:27 bug#2412: spurious "Sign failed" errors Chong Yidong
2009-04-16 18:56 ` Sven Joachim
2009-05-03  5:43   ` Daiki Ueno [this message]
2009-05-03 10:33     ` Sven Joachim
  -- strict thread matches above, loose matches on Subject: below --
2009-02-21 17:25 Chong Yidong
2009-02-21 20:40 ` Daiki Ueno
2009-02-20 18:03 Sven Joachim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ab5uspv5.fsf@broken.deisui.org \
    --to=ueno@unixuser.org \
    --cc=2412@emacsbugs.donarmstrong.com \
    --cc=cyd@stupidchicken.com \
    --cc=svenjoac@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).