13
0

Breathe at exit: allow event-loops to clean up

This commit is contained in:
Robin Gareus 2017-01-20 13:31:24 +01:00
parent c6a7c9417e
commit d6106b22cb

View File

@ -442,8 +442,22 @@ int main (int argc, char *argv[])
ui = 0;
ARDOUR::cleanup ();
#ifndef NDEBUG
if (getenv ("ARDOUR_RUNNING_UNDER_VALGRIND")) {
Glib::usleep(100000);
sched_yield();
}
#endif
pthread_cancel_all ();
#ifndef NDEBUG
if (getenv ("ARDOUR_RUNNING_UNDER_VALGRIND")) {
Glib::usleep(100000);
sched_yield();
}
#endif
console_madness_end ();
return 0;