diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-11-28 09:09:34 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-11-28 09:09:34 +0000 |
commit | 4e2277de88f42de6683041a1e48f957b7895653a (patch) | |
tree | a2c410fb172d9da3a65e4acc2bc8e726ef15beec /ace/Pipe.cpp | |
parent | cdeedf87b106854013dd8b2aefaaacd83a37c2b1 (diff) | |
download | ATCD-4e2277de88f42de6683041a1e48f957b7895653a.tar.gz |
foo
Diffstat (limited to 'ace/Pipe.cpp')
-rw-r--r-- | ace/Pipe.cpp | 7 |
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; |