From e2372a492c179f219fcf364ee938801bcc695567 Mon Sep 17 00:00:00 2001
From: linok9757 <linok1@list.ru>
Date: Wed, 6 Mar 2019 17:03:11 +0000
Subject: Ugly fix for crash on exit #3


diff --git a/main.cpp b/main.cpp
index b2f3858..b1719c5 100644
--- a/main.cpp
+++ b/main.cpp
@@ -36,6 +36,11 @@ TEST_MAIN
 #include "util/paths.h"
 #include "ui/mainwindow.h"
 
+#include <unistd.h>
+#include <sys/types.h>
+#include <signal.h>
+
+
 int main(int argc, char *argv[])
 {
     QApplication a(argc, argv);
@@ -74,7 +79,10 @@ int main(int argc, char *argv[])
     MainWindow w;
     w.show();
 
-    return a.exec();
+	a.exec();
+	kill(::getpid(), SIGKILL);
+
+    return 0;
 }
 
 #endif
-- 
2.19.1

