Fix printing of debug information on KDED crash

(cherry picked from commit d80ccaf94c)
v3.5.13-sru
Timothy Pearson 10 years ago committed by Slávek Banko
parent f416e6d8f2
commit 24a6fc6f80

@ -441,13 +441,17 @@ void Kded::updateResourceList()
void Kded::crashHandler(int) void Kded::crashHandler(int)
{ {
DCOPClient::emergencyClose(); DCOPClient::emergencyClose();
if (_self) // Don't restart if we were closing down if (_self) { // Don't restart if we were closing down
system("kded");
qWarning("Last DCOP call before KDED crash was from application '%s'\n" qWarning("Last DCOP call before KDED crash was from application '%s'\n"
"to object '%s', function '%s'.", "to object '%s', function '%s'.",
DCOPClient::postMortemSender(), DCOPClient::postMortemSender(),
DCOPClient::postMortemObject(), DCOPClient::postMortemObject(),
DCOPClient::postMortemFunction()); DCOPClient::postMortemFunction());
qWarning("Restarting KDED...\n");
if (system("kded") < 0) {
qWarning("Unable to restart KDED!\n");
}
}
} }
void Kded::installCrashHandler() void Kded::installCrashHandler()

Loading…
Cancel
Save