summaryrefslogtreecommitdiff
path: root/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2002-06-05 22:52:01 +0000
committerSteve Huston <shuston@riverace.com>2002-06-05 22:52:01 +0000
commitd56ace6d5cc8861a04fffd83b1ae4473be6a2172 (patch)
treedb04f465b50b5697429bcce6a52fc874bc3ca02a /examples/C++NPv2/AIO_Client_Logging_Daemon.cpp
parentd2f6eb3bde2e2fa10d7350390c53955110bb1963 (diff)
downloadATCD-d56ace6d5cc8861a04fffd83b1ae4473be6a2172.tar.gz
Code fix from Alexander.
Diffstat (limited to 'examples/C++NPv2/AIO_Client_Logging_Daemon.cpp')
-rw-r--r--examples/C++NPv2/AIO_Client_Logging_Daemon.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp b/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp
index 3994cfb8f73..c45edf2c4a8 100644
--- a/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp
+++ b/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp
@@ -213,9 +213,8 @@ void AIO_Output_Handler::start_write (ACE_Message_Block *mblk) {
getq (mblk, &nonblock);
}
if (mblk != 0) {
- if (writer_.write (*mblk, mblk->length ()) == 0)
- can_write_ = 0;
- else
+ can_write_ = 0;
+ if (writer_.write (*mblk, mblk->length ()) == -1)
ungetq (mblk);
}
}