Fix race condition with SIGSTOP in kdesktop_lock

pull/2/head
Slávek Banko 11 years ago
parent 0915425a0d
commit c03540e9f6

@ -1747,6 +1747,7 @@ void LockProcess::suspend()
else { else {
TQString hackStatus; TQString hackStatus;
mHackProc.kill(SIGSTOP); mHackProc.kill(SIGSTOP);
mSuspended = true;
#if 0 #if 0
// wait for the stop signal to take effect // wait for the stop signal to take effect
while (hackStatus != "T") { while (hackStatus != "T") {
@ -1769,7 +1770,6 @@ void LockProcess::suspend()
TQApplication::syncX(); TQApplication::syncX();
mSavedScreen = TQPixmap::grabWindow( winId()); mSavedScreen = TQPixmap::grabWindow( winId());
} }
mSuspended = true;
} }
void LockProcess::resume( bool force ) void LockProcess::resume( bool force )

Loading…
Cancel
Save