diff options
Diffstat (limited to 'ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp')
-rw-r--r-- | ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp b/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp index 3bc7bd09d13..7453273a511 100644 --- a/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp +++ b/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp @@ -169,11 +169,11 @@ Client::handle_input (ACE_HANDLE handle) ACE_TEXT ("(%t) Client::handle_input handle = %d bytes_read = %d\n"), handle, bytes_read)); - if (bytes_read < 0 && errno == EWOULDBLOCK) + if (bytes_read == -1 && errno == EWOULDBLOCK) { return 0; } - else if (bytes_read == 0) + else if (bytes_read <= 0) { // Closed. return -1; |