From ed700e5f2224b64d55a30fa37486073717fcdd9d Mon Sep 17 00:00:00 2001 From: schmidt Date: Thu, 28 Nov 1996 09:09:34 +0000 Subject: foo --- ace/Pipe.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ace/Pipe.cpp') 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; -- cgit v1.2.1