From 2e1ca4b35c1d31607775b20aa390df00977c0aae 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: [PATCH] Fix race condition with SIGSTOP in kdesktop_lock (cherry picked from commit c03540e9f6d2faee5b6fb582fabd59ded319cc60) --- kdesktop/lock/lockprocess.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc index da70102cf..397dec446 100644 --- a/kdesktop/lock/lockprocess.cc +++ b/kdesktop/lock/lockprocess.cc @@ -1749,6 +1749,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") { @@ -1771,7 +1772,6 @@ void LockProcess::suspend() TQApplication::syncX(); mSavedScreen = TQPixmap::grabWindow( winId()); } - mSuspended = true; } void LockProcess::resume( bool force )