summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/main.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-21 15:39:58 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-21 15:39:58 -0500
commitb5cb2797d65f2541a4c48ea00e6c325bb375ea46 (patch)
tree61dad727529d9a69977f44a05aca3a719422558c /kdesktop/lock/main.cc
parentc73eb5f814d1096cd398fbec3084f816ba8a7269 (diff)
downloadtdebase-b5cb2797d65f2541a4c48ea00e6c325bb375ea46.tar.gz
tdebase-b5cb2797d65f2541a4c48ea00e6c325bb375ea46.zip
Add new hardware device tray application
Allow removable media action request popups to be suppressed
Diffstat (limited to 'kdesktop/lock/main.cc')
-rw-r--r--kdesktop/lock/main.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/kdesktop/lock/main.cc b/kdesktop/lock/main.cc
index 6937cbe6a..871c87a69 100644
--- a/kdesktop/lock/main.cc
+++ b/kdesktop/lock/main.cc
@@ -247,6 +247,12 @@ int main( int argc, char **argv )
MyApp* app = NULL;
while (1 == 1) {
+ sigset_t new_mask;
+ sigset_t orig_mask;
+
+ // Block reception of all signals in this thread
+ sigprocmask(SIG_BLOCK, &new_mask, NULL);
+
signalled_forcelock = FALSE;
signalled_dontlock = FALSE;
signalled_securedialog = FALSE;
@@ -372,12 +378,6 @@ int main( int argc, char **argv )
KSimpleConfig* tdmconfig;
OPEN_TDMCONFIG_AND_SET_GROUP
- sigset_t new_mask;
- sigset_t orig_mask;
-
- // Block reception of all signals in this thread
- sigprocmask(SIG_BLOCK, &new_mask, NULL);
-
// Create new LockProcess, which also spawns threads inheriting the blocked signal mask
trinity_desktop_lock_process = new LockProcess;