// g++ killer-test.cpp -I/usr/local/boost-1.64.0-gcc6.2-fPIC/include/ -L/usr/local/boost-1.64.0-gcc6.2-fPIC/lib -lboost_system // LD_LIBRARY_PATH=/usr/local/boost-1.64.0-gcc6.2-fPIC/lib ./killer-test #include namespace bp = boost::process; #include namespace fs = boost::filesystem; #include namespace asio = boost::asio; extern "C" { #include #include } int main(int argc, char **argv) { asio::io_service ios; bp::child c("./killer", std::to_string(SIGABRT)); ios.run(); c.wait(); if ( EXIT_SUCCESS != c.exit_code() ) { return EXIT_FAILURE; } return EXIT_SUCCESS; }