[svn] assuan - r282 - trunk/src
svn author marcus
cvs at cvs.gnupg.org
Fri Mar 21 05:34:08 CET 2008
Author: marcus
Date: 2008-03-21 05:34:08 +0100 (Fri, 21 Mar 2008)
New Revision: 282
Modified:
trunk/src/ChangeLog
trunk/src/mkerrors
Log:
2008-03-21 Marcus Brinkmann <marcus at g10code.de>
* mkerrors [HAVE_W32_SYSTEM]: Include <windows.h>
(_assuan_error_is_eagain) [HAVE_W32_SYSTEM]: Wait the tenth of a
second.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2007-12-12 16:35:28 UTC (rev 281)
+++ trunk/src/ChangeLog 2008-03-21 04:34:08 UTC (rev 282)
@@ -1,3 +1,9 @@
+2008-03-21 Marcus Brinkmann <marcus at g10code.de>
+
+ * mkerrors [HAVE_W32_SYSTEM]: Include <windows.h>
+ (_assuan_error_is_eagain) [HAVE_W32_SYSTEM]: Wait the tenth of a
+ second.
+
2007-11-23 Marcus Brinkmann <marcus at g10code.de>
* assuan-inquire.c (_assuan_inquire_ext_cb): Pass through return
Modified: trunk/src/mkerrors
===================================================================
--- trunk/src/mkerrors 2007-12-12 16:35:28 UTC (rev 281)
+++ trunk/src/mkerrors 2008-03-21 04:34:08 UTC (rev 282)
@@ -28,6 +28,9 @@
#include <stdio.h>
#include <assert.h>
#include <errno.h>
+#ifdef HAVE_W32_SYSTEM
+#include <windows.h>
+#endif
#undef _ASSUAN_IN_LIBASSUAN /* undef to get all error codes. */
#include "assuan.h"
@@ -148,7 +151,12 @@
{
if ((!err_source && err == ASSUAN_Read_Error && errno == EAGAIN)
|| (err_source && (err & ((1 << 24) - 1)) == (6 | (1 << 15))))
- return 1;
+ {
+#ifdef HAVE_W32_SYSTEM
+ Sleep (100);
+#endif
+ return 1;
+ }
else
return 0;
}
More information about the Gnupg-commits
mailing list