summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/main.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-21 09:58:56 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-21 10:01:09 +0200
commitc94914e67a6c26d68935f230b470e10fd5397246 (patch)
treead07a82abb4b8106bbedbef291313ce34f7864a5 /facetracknoir/main.cpp
parent55eb3e4bf9854fa4341b61dcb78acd5d42cd7f42 (diff)
don't run atexit hooks on unix
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;
}