Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64989 - sandbox/SOC/2010/process/boost/process
From: boris_at_[hidden]
Date: 2010-08-24 17:05:23


Author: bschaeling
Date: 2010-08-24 17:05:21 EDT (Tue, 24 Aug 2010)
New Revision: 64989
URL: http://svn.boost.org/trac/boost/changeset/64989

Log:
Removed call to ConnectNamedPipe() in behavior::named_pipe on Windows
Text files modified:
   sandbox/SOC/2010/process/boost/process/stream_behavior.hpp | 27 ---------------------------
   1 files changed, 0 insertions(+), 27 deletions(-)

Modified: sandbox/SOC/2010/process/boost/process/stream_behavior.hpp
==============================================================================
--- sandbox/SOC/2010/process/boost/process/stream_behavior.hpp (original)
+++ sandbox/SOC/2010/process/boost/process/stream_behavior.hpp 2010-08-24 17:05:21 EDT (Tue, 24 Aug 2010)
@@ -249,33 +249,6 @@
             OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL);
         if (!parent_end_.valid())
             BOOST_PROCESS_THROW_LAST_SYSTEM_ERROR("CreateFile() failed");
-
- OVERLAPPED overlapped;
- ZeroMemory(&overlapped, sizeof(overlapped));
- overlapped.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
- if (!overlapped.hEvent)
- BOOST_PROCESS_THROW_LAST_SYSTEM_ERROR("CreateEvent() failed");
- BOOL b = ConnectNamedPipe(child_end_.native(), &overlapped);
- if (!b)
- {
- if (GetLastError() == ERROR_IO_PENDING)
- {
- if (WaitForSingleObject(overlapped.hEvent, INFINITE) ==
- WAIT_FAILED)
- {
- CloseHandle(overlapped.hEvent);
- BOOST_PROCESS_THROW_LAST_SYSTEM_ERROR(
- "WaitForSingleObject() failed");
- }
- }
- else if (GetLastError() != ERROR_PIPE_CONNECTED)
- {
- CloseHandle(overlapped.hEvent);
- BOOST_PROCESS_THROW_LAST_SYSTEM_ERROR(
- "ConnectNamedPipe() failed");
- }
- }
- CloseHandle(overlapped.hEvent);
 #endif
         if (stream == output_stream)
             std::swap(child_end_, parent_end_);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk