Skip to content

Commit fd8c0d0

Browse files
committed
More debug info for the example
1 parent 925a904 commit fd8c0d0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

example/terminate_handler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ void my_signal_handler2(int signum) {
7272

7373

7474
inline void copy_and_run(const char* exec_name, char param, bool not_null) {
75+
std::cout << "Running with param " << param << std::endl;
7576
boost::filesystem::path command = exec_name;
7677
command = command.parent_path() / (command.stem().string() + param + command.extension().string());
7778
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) {
8182
command_args += param;
8283
const int ret = std::system(command_args.string().c_str());
8384

85+
std::cout << "End Running with param " << param << "; ret code is " << ret << std::endl;
8486
boost::filesystem::remove(command);
8587
if (not_null && !ret) {
8688
std::exit(97);

0 commit comments

Comments
 (0)