summaryrefslogtreecommitdiff
path: root/ace/Pipe.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-28 09:09:34 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-28 09:09:34 +0000
commited700e5f2224b64d55a30fa37486073717fcdd9d (patch)
treea2c410fb172d9da3a65e4acc2bc8e726ef15beec /ace/Pipe.cpp
parentad66c757e62495734e28c3f3bbc33a9fd29217d3 (diff)
downloadATCD-ed700e5f2224b64d55a30fa37486073717fcdd9d.tar.gz
foo
Diffstat (limited to 'ace/Pipe.cpp')
-rw-r--r--ace/Pipe.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/ace/Pipe.cpp b/ace/Pipe.cpp
index 17654051b00..faa8c2ba993 100644
--- a/ace/Pipe.cpp
+++ b/ace/Pipe.cpp
@@ -133,8 +133,11 @@ ACE_Pipe::close (void)
{
ACE_TRACE ("ACE_Pipe::close");
- if (ACE_OS::close (this->handles_[0]) == -1
- || ACE_OS::close (this->handles_[1]) == -1)
+ // Note that the following will work even if we aren't closing down
+ // sockets because ACE_OS::closesocket() will just call ::close() in
+ // that case!
+ if (ACE_OS::closesocket (this->handles_[0]) == -1
+ || ACE_OS::closesocket (this->handles_[1]) == -1)
return -1;
else
return 0;