diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-19 23:28:45 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-19 23:28:45 +0200 |
commit | 12828409879d82d9bcc73f5c32b3614e491b0df8 (patch) | |
tree | 94d04446ef82c1a7853721b9d1bf9989fccba6e5 /synchronizer | |
parent | b3f799125e6d8db712f2855580c0e37e42442e68 (diff) | |
download | sink-12828409879d82d9bcc73f5c32b3614e491b0df8.tar.gz sink-12828409879d82d9bcc73f5c32b3614e491b0df8.zip |
SIGSTOP is not avialable on windows
Diffstat (limited to 'synchronizer')
-rw-r--r-- | synchronizer/main.cpp | 5 |
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 | ||
226 | int main(int argc, char *argv[]) | 226 | int 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); |