From fd8c0d0bc31ef9a8a7e1ffeb1776c0d145f8a565 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Sat, 4 Feb 2017 02:43:29 +0300 Subject: [PATCH] More debug info for the example --- example/terminate_handler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/terminate_handler.cpp b/example/terminate_handler.cpp index c2617e6..508bb42 100644 --- a/example/terminate_handler.cpp +++ b/example/terminate_handler.cpp @@ -72,6 +72,7 @@ void my_signal_handler2(int signum) { inline void copy_and_run(const char* exec_name, char param, bool not_null) { + std::cout << "Running with param " << param << std::endl; boost::filesystem::path command = exec_name; command = command.parent_path() / (command.stem().string() + param + command.extension().string()); boost::filesystem::copy_file(exec_name, command, boost::filesystem::copy_option::overwrite_if_exists); @@ -81,6 +82,7 @@ inline void copy_and_run(const char* exec_name, char param, bool not_null) { command_args += param; const int ret = std::system(command_args.string().c_str()); + std::cout << "End Running with param " << param << "; ret code is " << ret << std::endl; boost::filesystem::remove(command); if (not_null && !ret) { std::exit(97);