Merge pull request #7378 from AndrewMeadows/exit-immediately

interface avoids registered exit handlers on Release shutdown
This commit is contained in:
Brad Hefta-Gaub 2016-03-17 10:24:36 -07:00
commit df169e5c43

View file

@ -163,5 +163,9 @@ int main(int argc, const char* argv[]) {
Application::shutdownPlugins();
qCDebug(interfaceapp, "Normal exit.");
#ifndef DEBUG
// HACK: exit immediately (don't handle shutdown callbacks) for Release build
_exit(exitCode);
#endif
return exitCode;
}