From 24a6fc6f80d49256252bd774e287ebf7e25d2572 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 4 Dec 2014 09:01:44 -0600 Subject: [PATCH] Fix printing of debug information on KDED crash (cherry picked from commit d80ccaf94ce31d24834bf3051fb9438adf23e4fd) --- kded/kded.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/kded/kded.cpp b/kded/kded.cpp index b5f1c2d75..73b4d729b 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"); -qWarning("Last DCOP call before KDED crash was from application '%s'\n" + if (_self) { // Don't restart if we were closing down + qWarning("Last DCOP call before KDED crash was from application '%s'\n" "to object '%s', function '%s'.", DCOPClient::postMortemSender(), DCOPClient::postMortemObject(), DCOPClient::postMortemFunction()); + qWarning("Restarting KDED...\n"); + if (system("kded") < 0) { + qWarning("Unable to restart KDED!\n"); + } + } } void Kded::installCrashHandler()