diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2010-08-16 13:09:34 (GMT) |
---|---|---|
committer | Jesper Thomschutz <jesper.thomschutz@nokia.com> | 2010-08-17 10:10:16 (GMT) |
commit | aa53873c722352d513bf68ff7f11570def5900d9 (patch) | |
tree | 15c8f01240bd0e587430971dd8edf106afffd158 /doc/src/snippets/code/src_sql_kernel_qsqldatabase.cpp | |
parent | 45e958d7290104d2ab73a2262c0496cc90d1a6fa (diff) | |
download | Qt-aa53873c722352d513bf68ff7f11570def5900d9.zip Qt-aa53873c722352d513bf68ff7f11570def5900d9.tar.gz Qt-aa53873c722352d513bf68ff7f11570def5900d9.tar.bz2 |
Fix QProcessManager destruction
If QProcessManager destructor is ran as part of global static cleanup,
manager thread will most likely be terminated by kernel at that point,
so trying to delete QProcessActives and QProcessMediators will panic as
they will still be active. They can also no longer be properly canceled
as the thread is already gone. In case manager thread has already died,
which implies that process exit is imminent, we simply do nothing and
let the deletion of the main heap at process exit take care of stray
objects.
Task-number: QTBUG-11218
Reviewed-by: Janne Koskinen
(cherry picked from commit 7cfc9f2245162944f3d9a29ad73cd93e2bcf197f)
Diffstat (limited to 'doc/src/snippets/code/src_sql_kernel_qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions