From c94914e67a6c26d68935f230b470e10fd5397246 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 21 Oct 2014 09:58:56 +0200 Subject: don't run atexit hooks on unix --- facetracknoir/main.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'facetracknoir') 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 #include +#ifndef _WIN32 +# include +#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; } -- cgit v1.2.3