Fixed ERR_IS_FATAL so that ERR_WOULDBLOCK is not fatal.

This commit is contained in:
goldsimon 2010-12-02 07:07:18 +00:00
parent 377628216e
commit 92cdc1e33f
2 changed files with 4 additions and 1 deletions

View File

@ -233,6 +233,9 @@ HISTORY
++ Bugfixes:
2010-11-20: Simon Goldschmidt
* err.h: Fixed ERR_IS_FATAL so that ERR_WOULDBLOCK is not fatal.
2010-11-20: Simon Goldschmidt
* sockets.c: Fixed bug #31590: getsockopt(... SO_ERROR ...) gives EINPROGRESS
after a successful nonblocking connection.

View File

@ -58,7 +58,7 @@ typedef s8_t err_t;
#define ERR_VAL -6 /* Illegal value. */
#define ERR_WOULDBLOCK -7 /* Operation would block. */
#define ERR_IS_FATAL(e) ((e) < ERR_VAL)
#define ERR_IS_FATAL(e) ((e) < ERR_WOULDBLOCK)
#define ERR_ABRT -8 /* Connection aborted. */
#define ERR_RST -9 /* Connection reset. */