[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/runtime/nepomuk/server
From: Michael Jansen <kde () michael-jansen ! biz>
Date: 2009-11-22 2:20:30
Message-ID: 1258856430.220183.919.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1052546 by mjansen:
Enhance debug output in case of startup crashes.
M +11 -2 processcontrol.cpp
--- trunk/KDE/kdebase/runtime/nepomuk/server/processcontrol.cpp #1052545:1052546
@@ -89,10 +89,19 @@
if ( exitStatus == QProcess::CrashExit ) {
if ( mPolicy == RestartOnCrash ) {
// don't try to start an unstartable application
- if ( !mFailedToStart && --mCrashCount >= 0 )
+ if ( !mFailedToStart && --mCrashCount >= 0 ) {
+ qDebug( "Application '%s' crashed! %d restarts left.", qPrintable( \
mApplication ), mCrashCount ); start();
- else
+ } else {
+ if ( mFailedToStart ) {
+ qDebug( "Application '%s' failed to start!", qPrintable( \
mApplication ) ); + } else {
+ qDebug( "Application '%s' crashed to often. Giving up!", \
qPrintable( mApplication ) ); + }
emit finished(false);
+ }
+ } else {
+ qDebug( "Application '%s' crashed. No restart!", qPrintable( \
mApplication ) ); }
} else {
if ( exitCode != 0 ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic