summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/main.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-05-03 15:55:11 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-05-03 15:55:11 -0500
commit3cce16c2543ebd7441477b466b35c89333eef28c (patch)
treecc54cc6cf5bdcaf59b96318400657be53efdca74 /kdesktop/lock/main.cc
parent667839ee6560a10aca54885dbf8951b77bdc21b2 (diff)
downloadtdebase-3cce16c2543ebd7441477b466b35c89333eef28c.tar.gz
tdebase-3cce16c2543ebd7441477b466b35c89333eef28c.zip
Properly fix task tray background glitches
Ensure session is fully locked before switching to new VT when lock is requested
Diffstat (limited to 'kdesktop/lock/main.cc')
-rw-r--r--kdesktop/lock/main.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/kdesktop/lock/main.cc b/kdesktop/lock/main.cc
index 792764da1..f6fbc20b2 100644
--- a/kdesktop/lock/main.cc
+++ b/kdesktop/lock/main.cc
@@ -81,6 +81,7 @@ bool signalled_run;
bool in_internal_mode = FALSE;
bool argb_visual = FALSE;
+pid_t kdesktop_pid = -1;
static void sigusr1_handler(int)
{
@@ -490,8 +491,8 @@ int main( int argc, char **argv )
return ret;
}
else {
- pid_t kdesktop_pid = atoi(args->getOption( "internal" ));
- if (kill(kdesktop_pid, SIGUSR2) < 0) {
+ kdesktop_pid = atoi(args->getOption( "internal" ));
+ if (kill(kdesktop_pid, 0) < 0) {
// The controlling kdesktop process probably died. Commit suicide...
return 12;
}