summaryrefslogtreecommitdiff
path: root/core
Side-by-side diff
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/desktop.cpp5
-rw-r--r--core/launcher/main.cpp3
2 files changed, 3 insertions, 5 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp
index fb10602..1ec477c 100644
--- a/core/launcher/desktop.cpp
+++ b/core/launcher/desktop.cpp
@@ -616,7 +616,7 @@ void Desktop::togglePower()
loggedin=0;
suspendTime = QDateTime::currentDateTime();
- qpe_setBacklight ( 0 ); // force LCD off
+// qpe_setBacklight ( 0 ); // force LCD off (sandman: why ????)
if ( wasloggedin )
blankScreen();
@@ -636,9 +636,6 @@ void Desktop::togglePower()
execAutoStart();
//qcopBridge->closeOpenConnections();
- //qDebug("called togglePower()!!!!!!");
-
- qApp-> processEvents ( );
excllock = false;
}
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp
index 3ee5e26..5cf624b 100644
--- a/core/launcher/main.cpp
+++ b/core/launcher/main.cpp
@@ -352,7 +352,7 @@ void remove_pidfile ( )
::unlink ( pidfile_path );
}
-void handle_sigterm ( int sig )
+void handle_sigterm ( int /* sig */ )
{
if ( qApp )
qApp-> quit ( );
@@ -364,6 +364,7 @@ int main( int argc, char ** argv )
::signal( SIGCHLD, SIG_IGN );
::signal ( SIGTERM, handle_sigterm );
+ ::signal ( SIGINT, handle_sigterm );
::setsid ( );
::setpgid ( 0, 0 );