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, 2 insertions, 4 deletions
diff --git a/synchronizer/main.cpp b/synchronizer/main.cpp
index a30aebb..3168bfc 100644
--- a/synchronizer/main.cpp
+++ b/synchronizer/main.cpp
@@ -37,7 +37,7 @@
37#undef DEBUG_AREA 37#undef DEBUG_AREA
38#define DEBUG_AREA "resource" 38#define DEBUG_AREA "resource"
39 39
40Listener *listener = nullptr; 40static Listener *listener = nullptr;
41 41
42//Print a demangled stacktrace 42//Print a demangled stacktrace
43void printStacktrace() 43void printStacktrace()
@@ -78,14 +78,13 @@ void printStacktrace()
78 std::cerr << trace_buf.str(); 78 std::cerr << trace_buf.str();
79} 79}
80 80
81int sCounter = 0; 81static int sCounter = 0;
82 82
83void crashHandler(int signal) 83void crashHandler(int signal)
84{ 84{
85 //Guard against crashing in here 85 //Guard against crashing in here
86 if (sCounter > 1) { 86 if (sCounter > 1) {
87 std::_Exit(EXIT_FAILURE); 87 std::_Exit(EXIT_FAILURE);
88 return;
89 } 88 }
90 sCounter++; 89 sCounter++;
91 90
@@ -107,7 +106,6 @@ void crashHandler(int signal)
107 // std::system("exec xterm -e gdb -p \"$PPID\""); 106 // std::system("exec xterm -e gdb -p \"$PPID\"");
108 107
109 std::_Exit(EXIT_FAILURE); 108 std::_Exit(EXIT_FAILURE);
110 return;
111} 109}
112 110
113void terminateHandler() 111void terminateHandler()