summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-02-16 14:41:49 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-02-16 14:41:49 +0100
commitc03540e9f6d2faee5b6fb582fabd59ded319cc60 (patch)
tree0af9e9ac13117829090fef404f410cd29c3cd9d8 /kdesktop/lock
parent0915425a0d3806acee67389d077703ab5eab3806 (diff)
downloadtdebase-c03540e9f6d2faee5b6fb582fabd59ded319cc60.tar.gz
tdebase-c03540e9f6d2faee5b6fb582fabd59ded319cc60.zip
Fix race condition with SIGSTOP in kdesktop_lock
Diffstat (limited to 'kdesktop/lock')
-rw-r--r--kdesktop/lock/lockprocess.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc
index f4b6278f5..aa68ba1a0 100644
--- a/kdesktop/lock/lockprocess.cc
+++ b/kdesktop/lock/lockprocess.cc
@@ -1747,6 +1747,7 @@ void LockProcess::suspend()
else {
TQString hackStatus;
mHackProc.kill(SIGSTOP);
+ mSuspended = true;
#if 0
// wait for the stop signal to take effect
while (hackStatus != "T") {
@@ -1769,7 +1770,6 @@ void LockProcess::suspend()
TQApplication::syncX();
mSavedScreen = TQPixmap::grabWindow( winId());
}
- mSuspended = true;
}
void LockProcess::resume( bool force )