summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-12-04 09:01:44 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-12-04 09:01:44 -0600
commitd80ccaf94ce31d24834bf3051fb9438adf23e4fd (patch)
treedfb50b59b94e8510618a3843e45fa015babf0abe
parentbbd5f4476c3feda235f90b458ad25d0511f53627 (diff)
downloadtdelibs-d80ccaf94ce31d24834bf3051fb9438adf23e4fd.tar.gz
tdelibs-d80ccaf94ce31d24834bf3051fb9438adf23e4fd.zip
Fix printing of debug information on KDED crash
-rw-r--r--kded/kded.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/kded/kded.cpp b/kded/kded.cpp
index c7a0aa221..e1b3b6b33 100644
--- a/kded/kded.cpp
+++ b/kded/kded.cpp
@@ -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()