From 12828409879d82d9bcc73f5c32b3614e491b0df8 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 19 Apr 2018 23:28:45 +0200 Subject: SIGSTOP is not avialable on windows --- synchronizer/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'synchronizer/main.cpp') 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() int main(int argc, char *argv[]) { - const bool gdbDebugMode = qEnvironmentVariableIsSet("SINK_GDB_DEBUG"); - if (gdbDebugMode) { + if (qEnvironmentVariableIsSet("SINK_GDB_DEBUG")) { +#ifndef Q_OS_WIN SinkWarning() << "Running resource in debug mode and waiting for gdb to attach: gdb attach " << getpid(); raise(SIGSTOP); +#endif } else { // For crashes std::signal(SIGSEGV, crashHandler); -- cgit v1.2.3