diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-12-27 14:58:42 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-12-27 14:58:42 +0000 |
commit | cf3724920329058402c93ab414f2c5677804206c (patch) | |
tree | 34e5ac60cf4c6bced62e57bf36d289899c4c260e /ace/MEM_IO.cpp | |
parent | ea29e9f3ef750decb7fde8dbcb918311cfb378d4 (diff) | |
download | ATCD-cf3724920329058402c93ab414f2c5677804206c.tar.gz |
ChangeLogTag:Fri Dec 27 08:38:29 2002 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'ace/MEM_IO.cpp')
-rw-r--r-- | ace/MEM_IO.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ace/MEM_IO.cpp b/ace/MEM_IO.cpp index 82aab34b3e1..fcd02b73282 100644 --- a/ace/MEM_IO.cpp +++ b/ace/MEM_IO.cpp @@ -47,7 +47,13 @@ ACE_Reactive_MEM_IO::recv_buf (ACE_MEM_SAP_Node *&buf, timeout); if (retv == 0) - return 0; + { + // Something bad has happened. It looks like only Solaris and + // Win32 will fall into this place when the other end closes the + // connection. + errno = EIO; + return -1; + } else if (retv != sizeof (off_t)) { // Nothing available or we are really screwed. |