15 #include <boost/system/error_code.hpp>
20 template <
class Process>
24 if (::kill(p.pid, SIGKILL) == -1)
26 BOOST_PROCESS_THROW_LAST_SYSTEM_ERROR(
"kill(2) failed");
30 template <
class Process>
32 terminate(
const Process& p, boost::system::error_code& ec)
34 if (::kill(p.pid, SIGKILL) == -1)
36 BOOST_PROCESS_RETURN_LAST_SYSTEM_ERROR(ec);