diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-23 13:01:21 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-02-23 13:01:21 +0100 |
commit | 48211506943a67d8758a14779febac2608fe6a64 (patch) | |
tree | c0cd91289002da5451049a410ae3fc40410c32ca /synchronizer | |
parent | 17260568c54e986cb78a81e94d0d2619051d67e0 (diff) | |
download | sink-48211506943a67d8758a14779febac2608fe6a64.tar.gz sink-48211506943a67d8758a14779febac2608fe6a64.zip |
Make sure we print the message.
std::cout doesn't seem to work reliably at this point...
Diffstat (limited to 'synchronizer')
-rw-r--r-- | synchronizer/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
105 | //Get the word out that we're going down | 105 | //Get the word out that we're going down |
106 | listener->emergencyAbortAllConnections(); | 106 | listener->emergencyAbortAllConnections(); |
107 | 107 | ||
108 | std::cout << "Sleeping for 10s to attach a debugger: gdb attach " << getpid(); | 108 | std::fprintf(stdout, "Sleeping for 10s to attach a debugger: gdb attach %i\n", getpid()); |
109 | std::this_thread::sleep_for(std::chrono::seconds(10)); | 109 | std::this_thread::sleep_for(std::chrono::seconds(10)); |
110 | 110 | ||
111 | // std::system("exec gdb -p \"$PPID\" -ex \"thread apply all bt\""); | 111 | // std::system("exec gdb -p \"$PPID\" -ex \"thread apply all bt\""); |