From d0395d1de508b960fa8d7c83e404d7aacb617c9c Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 5 Oct 2007 16:44:08 +0000 Subject: 2007-10-05 Marcus Brinkmann * assuan-defs.h (_assuan_error_is_eagain): New prototype. * mkerrors (_assuan_error_is_eagain): New function. * assuan-handler.c (process_next): Leave on EAGAIN. * assuan-handler.c (process_request), assuan-client.c (_assuan_read_from_server), assuan-buffer.c (assuan_read_line): Busy loop over EAGAIN. --- src/assuan-defs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/assuan-defs.h') diff --git a/src/assuan-defs.h b/src/assuan-defs.h index 1e31c43..f17e906 100644 --- a/src/assuan-defs.h +++ b/src/assuan-defs.h @@ -234,6 +234,8 @@ void _assuan_inquire_release (assuan_context_t ctx); /* Map error codes as used in this implementation to the libgpg-error codes. */ assuan_error_t _assuan_error (int oldcode); +/* Check if ERR means EAGAIN. */ +int _assuan_error_is_eagain (assuan_error_t err); /* Extract the error code from A. This works for both the old and the new style error codes. This needs to be used whenever an error -- cgit v1.2.3