summaryrefslogtreecommitdiff
path: root/ace/SOCK_Stream.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-04-16 10:02:20 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-04-16 10:02:20 +0000
commit26c63225a7e3f80fb238c906d71e94e2251a74e8 (patch)
tree933307298b561d15f4caf710c7c7e853431338a2 /ace/SOCK_Stream.cpp
parent358ae8fcecd3f5cbfb1ac32b267f8803df4ec94d (diff)
downloadATCD-26c63225a7e3f80fb238c906d71e94e2251a74e8.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/SOCK_Stream.cpp')
-rw-r--r--ace/SOCK_Stream.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/ace/SOCK_Stream.cpp b/ace/SOCK_Stream.cpp
index eac7daf021d..2acb22f962c 100644
--- a/ace/SOCK_Stream.cpp
+++ b/ace/SOCK_Stream.cpp
@@ -15,10 +15,15 @@ ACE_SOCK_Stream::dump (void) const
int
ACE_SOCK_Stream::close (void)
{
+#if defined (ACE_WIN32)
// We need the following call to make things work correctly on
// Win32, which requires use to do a <close_writer> before doing the
- // close in order to avoid losing data.
+ // close in order to avoid losing data. Note that we don't need to
+ // do this on UNIX since it doesn't have this "feature". Moreover,
+ // this will cause subtle problems on UNIX due to the way that
+ // fork() works.
this->close_writer ();
+#endif /* ACE_WIN32 */
// Close down the socket.
return ACE_SOCK::close ();
}