summaryrefslogtreecommitdiffstats
path: root/synchronizer/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'synchronizer/main.cpp')
-rw-r--r--synchronizer/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/synchronizer/main.cpp b/synchronizer/main.cpp
index 1467fe4..f1709bc 100644
--- a/synchronizer/main.cpp
+++ b/synchronizer/main.cpp
@@ -225,10 +225,11 @@ void printStats()
225 225
226int main(int argc, char *argv[]) 226int main(int argc, char *argv[])
227{ 227{
228 const bool gdbDebugMode = qEnvironmentVariableIsSet("SINK_GDB_DEBUG"); 228 if (qEnvironmentVariableIsSet("SINK_GDB_DEBUG")) {
229 if (gdbDebugMode) { 229#ifndef Q_OS_WIN
230 SinkWarning() << "Running resource in debug mode and waiting for gdb to attach: gdb attach " << getpid(); 230 SinkWarning() << "Running resource in debug mode and waiting for gdb to attach: gdb attach " << getpid();
231 raise(SIGSTOP); 231 raise(SIGSTOP);
232#endif
232 } else { 233 } else {
233 // For crashes 234 // For crashes
234 std::signal(SIGSEGV, crashHandler); 235 std::signal(SIGSEGV, crashHandler);