summaryrefslogtreecommitdiffstats
path: root/synchronizer/main.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-19 23:28:45 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-19 23:28:45 +0200
commit12828409879d82d9bcc73f5c32b3614e491b0df8 (patch)
tree94d04446ef82c1a7853721b9d1bf9989fccba6e5 /synchronizer/main.cpp
parentb3f799125e6d8db712f2855580c0e37e42442e68 (diff)
downloadsink-12828409879d82d9bcc73f5c32b3614e491b0df8.tar.gz
sink-12828409879d82d9bcc73f5c32b3614e491b0df8.zip
SIGSTOP is not avialable on windows
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);