增强 1.64 的重要性
升级 1.64 有一个错误/修复,这个错误只会影响 Windows。
参考: https : //github.com/klemens-morgenstern/boost-process/issues/90 和 https://github.com/klemens-morgenstern/boost-process/commit/74814e46c1614850a8e447fd689c21cf82f36ceb
在档案 boost\process\detail\windows\async_pipe.hpp, line 79
:
~async_pipe()
{
//fix
//if (_sink .native() != ::boost::detail::winapi::INVALID_HANDLE_VALUE_)
// ::boost::detail::winapi::CloseHandle(_sink.native());
//if (_source.native() != ::boost::detail::winapi::INVALID_HANDLE_VALUE_)
// ::boost::detail::winapi::CloseHandle(_source.native());
boost::system::error_code ec;
close(ec);
//fix
}