summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog4
-rw-r--r--src/assuan-inquire.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6ac96e8..9f964fb 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2008-03-25 Marcus Brinkmann <marcus@g10code.de>
+
+ * assuan-inquire.c (assuan_inquire): Loop over _assuan_read_line for EAGAIN.
+
2008-03-21 Marcus Brinkmann <marcus@g10code.de>
* assuan-defs.h (_assuan_usleep): New prototype.
diff --git a/src/assuan-inquire.c b/src/assuan-inquire.c
index bfb16d9..58b9f02 100644
--- a/src/assuan-inquire.c
+++ b/src/assuan-inquire.c
@@ -169,7 +169,9 @@ assuan_inquire (assuan_context_t ctx, const char *keyword,
{
do
{
- rc = _assuan_read_line (ctx);
+ do
+ rc = _assuan_read_line (ctx);
+ while (_assuan_error_is_eagain (rc));
if (rc)
goto leave;
line = (unsigned char *) ctx->inbound.line;