Multithreaded Bug in GNUPG? - Sometimes Returns Exit Code 2 while decrypting

Werner Koch wk at
Thu Nov 30 19:22:01 CET 2006

On Thu, 30 Nov 2006 17:49, harakiri_23 at said:

> On a multithreaded envirenment, when calling the gnupg
> binary multiple times, sometimes (2-3%) not 0 is

GnuPG 1.4 is not multithreaded.  So this can't be an issue.

> returned for decryption but 2 and no further error
> messages.

If you run several processes at once on the same keyring, locking
might timeout and thus you see the failure.  It is also possible that
file locking failed and thus you get an error return.  This may for
example be due to problems with the file system.

Please provide system, version and log information and a way to
replicate it.



More information about the Gnupg-devel mailing list