diff options
Diffstat (limited to 'kdesktop')
-rw-r--r-- | kdesktop/lock/main.cc | 12 |
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; |