From b5cb2797d65f2541a4c48ea00e6c325bb375ea46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 21 Sep 2015 15:39:58 -0500 Subject: Add new hardware device tray application Allow removable media action request popups to be suppressed --- kdesktop/lock/main.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kdesktop') 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; -- cgit v1.2.3