From 48211506943a67d8758a14779febac2608fe6a64 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 23 Feb 2017 13:01:21 +0100 Subject: Make sure we print the message. std::cout doesn't seem to work reliably at this point... --- synchronizer/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'synchronizer') diff --git a/synchronizer/main.cpp b/synchronizer/main.cpp index edecbb1..e6a4d56 100644 --- a/synchronizer/main.cpp +++ b/synchronizer/main.cpp @@ -105,7 +105,7 @@ void crashHandler(int signal) //Get the word out that we're going down listener->emergencyAbortAllConnections(); - std::cout << "Sleeping for 10s to attach a debugger: gdb attach " << getpid(); + std::fprintf(stdout, "Sleeping for 10s to attach a debugger: gdb attach %i\n", getpid()); std::this_thread::sleep_for(std::chrono::seconds(10)); // std::system("exec gdb -p \"$PPID\" -ex \"thread apply all bt\""); -- cgit v1.2.3