Browse Source

Fix printing of debug information on KDED crash

tags/r14.0.0
Timothy Pearson 4 years ago
parent
commit
d80ccaf94c
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      kded/kded.cpp

+ 7
- 3
kded/kded.cpp View File

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

void Kded::installCrashHandler()

Loading…
Cancel
Save