summaryrefslogtreecommitdiffstats
path: root/synchronizer/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'synchronizer/main.cpp')
-rw-r--r--synchronizer/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/synchronizer/main.cpp b/synchronizer/main.cpp
index 110e59c..dc23a51 100644
--- a/synchronizer/main.cpp
+++ b/synchronizer/main.cpp
@@ -29,6 +29,9 @@
29#include <dlfcn.h> 29#include <dlfcn.h>
30#include <ostream> 30#include <ostream>
31#include <sstream> 31#include <sstream>
32#include <thread>
33#include <chrono>
34#include <unistd.h>
32 35
33#include "listener.h" 36#include "listener.h"
34#include "log.h" 37#include "log.h"
@@ -100,6 +103,9 @@ void crashHandler(int signal)
100 //Get the word out that we're going down 103 //Get the word out that we're going down
101 listener->emergencyAbortAllConnections(); 104 listener->emergencyAbortAllConnections();
102 105
106 std::cout << "Sleeping for 10s to attach a debugger: gdb attach " << getpid();
107 std::this_thread::sleep_for(std::chrono::seconds(10));
108
103 // std::system("exec gdb -p \"$PPID\" -ex \"thread apply all bt\""); 109 // std::system("exec gdb -p \"$PPID\" -ex \"thread apply all bt\"");
104 // This only works if we actually have xterm and X11 available 110 // This only works if we actually have xterm and X11 available
105 // std::system("exec xterm -e gdb -p \"$PPID\""); 111 // std::system("exec xterm -e gdb -p \"$PPID\"");