From c03540e9f6d2faee5b6fb582fabd59ded319cc60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 16 Feb 2013 14:41:49 +0100 Subject: Fix race condition with SIGSTOP in kdesktop_lock --- kdesktop/lock/lockprocess.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kdesktop') 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 ) -- cgit v1.2.1