summaryrefslogtreecommitdiff
path: root/ace/POSIX_Asynch_IO.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2002-10-29 01:45:01 +0000
committerSteve Huston <shuston@riverace.com>2002-10-29 01:45:01 +0000
commitffba57488a37ad9a06861f9e43d6a944bd319325 (patch)
treed6bc8a1b3bd583cde524c7bebf6462159d7b24a2 /ace/POSIX_Asynch_IO.cpp
parent8b89ae32c7bd52b4117d6088bb1416962cc9db0d (diff)
downloadATCD-ffba57488a37ad9a06861f9e43d6a944bd319325.tar.gz
ChangeLogTag:Mon Oct 28 20:38:27 2002 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/POSIX_Asynch_IO.cpp')
-rw-r--r--ace/POSIX_Asynch_IO.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/ace/POSIX_Asynch_IO.cpp b/ace/POSIX_Asynch_IO.cpp
index 8ecb78bba14..6147e8cbb58 100644
--- a/ace/POSIX_Asynch_IO.cpp
+++ b/ace/POSIX_Asynch_IO.cpp
@@ -370,15 +370,14 @@ ACE_POSIX_Asynch_Read_Stream::read (ACE_Message_Block &message_block,
int signal_number)
{
size_t space = message_block.space ();
- if ( bytes_to_read > space )
+ if (bytes_to_read > space)
bytes_to_read=space;
- if ( bytes_to_read == 0 )
- ACE_ERROR_RETURN
- ((LM_ERROR,
- ACE_LIB_TEXT ("ACE_POSIX_Asynch_Read_Stream::read:")
- ACE_LIB_TEXT ("Attempt to read 0 bytes or no space in the message block\n")),
- -1);
+ if (bytes_to_read == 0)
+ {
+ errno = ENOSPC;
+ return -1;
+ }
// Create the Asynch_Result.
ACE_POSIX_Asynch_Read_Stream_Result *result = 0;