summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'facetracknoir/main.cpp')
-rw-r--r--facetracknoir/main.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp
index aa33522d..7fb37864 100644
--- a/facetracknoir/main.cpp
+++ b/facetracknoir/main.cpp
@@ -4,6 +4,10 @@
#include <QStringList>
#include <memory>
+#ifndef _WIN32
+# include <unistd.h>
+#endif
+
int main(int argc, char** argv)
{
// workaround QTBUG-38598
@@ -32,6 +36,10 @@ int main(int argc, char** argv)
w->show();
app.exec();
-
+
+#ifndef _WIN32
+ _exit(0);
+#endif
+
return 0;
}