13 #include <boost/system/error_code.hpp>
19 template <
class Process>
22 if (::kill(p.pid, SIGKILL) == -1)
24 BOOST_PROCESS_THROW_LAST_SYSTEM_ERROR(
"kill(2) failed");
28 template <
class Process>
29 void terminate(
const Process& p, boost::system::error_code& ec)
31 if (::kill(p.pid, SIGKILL) == -1)
33 BOOST_PROCESS_RETURN_LAST_SYSTEM_ERROR(ec);