diff options
author | Steve Huston <shuston@riverace.com> | 1997-06-12 14:17:14 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 1997-06-12 14:17:14 +0000 |
commit | 608e3296175520804a210b978bd05c3fcff8f5f8 (patch) | |
tree | c65b2ab253835325e844ab1301f419dd9d32a1fc | |
parent | f47ac0f949f99d85ec3acec837c5e3495e2bcdeb (diff) | |
download | ATCD-608e3296175520804a210b978bd05c3fcff8f5f8.tar.gz |
Non-blocking read with no data available sets errno to EAGAIN, not EWOULDBLOCK.
Retained check for EWOULDBLOCK assuming that it's there for some version of
some OS.
-rw-r--r-- | tests/SOCK_Test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/SOCK_Test.cpp b/tests/SOCK_Test.cpp index 4dfc0ac5023..1d6ace4aac5 100644 --- a/tests/SOCK_Test.cpp +++ b/tests/SOCK_Test.cpp @@ -183,7 +183,7 @@ server (void *arg) } else if (r_bytes == -1) { - if (errno == EWOULDBLOCK) + if (errno == EAGAIN || errno == EWOULDBLOCK) ACE_DEBUG ((LM_DEBUG, "(%P|%t) no input available, going back to reading\n")); else ACE_ERROR_RETURN ((LM_ERROR, "(%P|%t) %p\n", "recv_n"), 0); |