summaryrefslogtreecommitdiff
path: root/boost/process/detail/windows/terminate.hpp
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2019-12-05 15:11:01 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2019-12-05 15:11:01 +0900
commit3fdc3e5ee96dca5b11d1694975a65200787eab86 (patch)
tree5c1733853892b8397d67706fa453a9bd978d2102 /boost/process/detail/windows/terminate.hpp
parent88e602c57797660ebe0f9e15dbd64c1ff16dead3 (diff)
downloadboost-3fdc3e5ee96dca5b11d1694975a65200787eab86.tar.gz
boost-3fdc3e5ee96dca5b11d1694975a65200787eab86.tar.bz2
boost-3fdc3e5ee96dca5b11d1694975a65200787eab86.zip
Imported Upstream version 1.66.0upstream/1.66.0
Diffstat (limited to 'boost/process/detail/windows/terminate.hpp')
-rw-r--r--boost/process/detail/windows/terminate.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/boost/process/detail/windows/terminate.hpp b/boost/process/detail/windows/terminate.hpp
index a10b074078..ba66e4085c 100644
--- a/boost/process/detail/windows/terminate.hpp
+++ b/boost/process/detail/windows/terminate.hpp
@@ -13,8 +13,8 @@
#include <boost/process/detail/config.hpp>
#include <system_error>
#include <cstdlib>
-#include <boost/detail/winapi/process.hpp>
-#include <boost/detail/winapi/get_last_error.hpp>
+#include <boost/winapi/process.hpp>
+#include <boost/winapi/get_last_error.hpp>
namespace boost { namespace process { namespace detail { namespace windows {
@@ -22,22 +22,22 @@ struct child_handle;
inline void terminate(child_handle &p)
{
- if (!::boost::detail::winapi::TerminateProcess(p.process_handle(), EXIT_FAILURE))
+ if (!::boost::winapi::TerminateProcess(p.process_handle(), EXIT_FAILURE))
boost::process::detail::throw_last_error("TerminateProcess() failed");
- ::boost::detail::winapi::CloseHandle(p.proc_info.hProcess);
- p.proc_info.hProcess = ::boost::detail::winapi::INVALID_HANDLE_VALUE_;
+ ::boost::winapi::CloseHandle(p.proc_info.hProcess);
+ p.proc_info.hProcess = ::boost::winapi::INVALID_HANDLE_VALUE_;
}
inline void terminate(child_handle &p, std::error_code &ec) noexcept
{
- if (!::boost::detail::winapi::TerminateProcess(p.process_handle(), EXIT_FAILURE))
+ if (!::boost::winapi::TerminateProcess(p.process_handle(), EXIT_FAILURE))
ec = boost::process::detail::get_last_error();
else
{
ec.clear();
- ::boost::detail::winapi::CloseHandle(p.proc_info.hProcess);
- p.proc_info.hProcess = ::boost::detail::winapi::INVALID_HANDLE_VALUE_;
+ ::boost::winapi::CloseHandle(p.proc_info.hProcess);
+ p.proc_info.hProcess = ::boost::winapi::INVALID_HANDLE_VALUE_;
}
}