From 5add53cbf895ed68ddc0bcfd1254537981713eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Wed, 10 Apr 2019 13:26:30 +0200 Subject: [PATCH] Start Crash Handler detached --- src/common/CrashHandler.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/common/CrashHandler.cpp b/src/common/CrashHandler.cpp index 481de058..9d39542f 100644 --- a/src/common/CrashHandler.cpp +++ b/src/common/CrashHandler.cpp @@ -42,9 +42,10 @@ bool callback(const wchar_t *_dump_dir, { const QDir dir = QString::fromWCharArray(_dump_dir); const QString id = QString::fromWCharArray(_minidump_id); - QProcess::execute(QCoreApplication::applicationFilePath() + QProcess::startDetached(QCoreApplication::applicationFilePath() + " --start-crash-handler " + dir.filePath(id + ".dmp")); + _exit(1); return true; } #elif defined (Q_OS_LINUX) @@ -52,9 +53,10 @@ bool callback(const wchar_t *_dump_dir, // Saves path to file bool callback(const google_breakpad::MinidumpDescriptor &md, void *context, bool b) { - QProcess::execute(QCoreApplication::applicationFilePath() + QProcess::startDetached(QCoreApplication::applicationFilePath() + " --start-crash-handler " + md.path()); + _exit(1); return true; } #elif defined (Q_OS_MACOS) @@ -64,9 +66,10 @@ bool callback(const char *dump_dir, const char *minidump_id, void *context, bool { const QDir dir = QString::fromUtf8(dump_dir); const QString id = QString::fromUtf8(minidump_id); - QProcess::execute(QCoreApplication::applicationFilePath() + QProcess::startDetached(QCoreApplication::applicationFilePath() + " --start-crash-handler " + dir.filePath(id + ".dmp")); + _exit(1); return true; } #endif // Q_OS