all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sven Joachim <svenjoac@gmx.de>
To: Daiki Ueno <ueno@unixuser.org>
Cc: Chong Yidong <cyd@stupidchicken.com>, 2412@emacsbugs.donarmstrong.com
Subject: bug#2412: spurious "Sign failed" errors
Date: Sun, 03 May 2009 12:33:30 +0200	[thread overview]
Message-ID: <87eiv6pjb9.fsf@turtle.gmx.de> (raw)
In-Reply-To: <87ab5uspv5.fsf@broken.deisui.org> (Daiki Ueno's message of "Sun,  03 May 2009 14:43:42 +0900")

On 2009-05-03 07:43 +0200, Daiki Ueno wrote:

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

That seems to do the trick.  At least, I had no problem in ~15 attempts
to preview/send signed messages, whereas without your patch the "Sign
failed" error would happen about every second time.

Cheers,
       Sven






  reply	other threads:[~2009-05-03 10:33 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
2009-05-03 10:33     ` Sven Joachim [this message]
  -- 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

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

  git send-email \
    --in-reply-to=87eiv6pjb9.fsf@turtle.gmx.de \
    --to=svenjoac@gmx.de \
    --cc=2412@emacsbugs.donarmstrong.com \
    --cc=cyd@stupidchicken.com \
    --cc=ueno@unixuser.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.