Stabilize the SAK system

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1253985 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 96c46c4f95
commit 7b1017d001

@ -223,8 +223,6 @@ void SaverEngine::slotSAKProcessExited()
{
mLockProcess.kill( SIGHUP );
}
TQTimer::singleShot( 0, this, TQT_SLOT(handleSecureDialog()) );
}
}
@ -372,6 +370,9 @@ void SaverEngine::lockProcessExited()
}
processLockTransactions();
mState = Waiting;
if (trinity_lockeng_sak_available == TRUE) {
handleSecureDialog();
}
}
//---------------------------------------------------------------------------

@ -36,12 +36,12 @@ int main (int argc, char *argv[])
mPipe_fd = open(FIFO_FILE, O_RDONLY | O_NONBLOCK);
numread = 1;
while (numread > 0) {
numread = read(mPipe_fd, readbuf, 128);
numread = read(mPipe_fd, readbuf, 6);
}
// Now wait for SAK press
mPipe_fd = open(FIFO_FILE, O_RDONLY);
if (mPipe_fd > -1) {
numread = read(mPipe_fd, readbuf, 128);
numread = read(mPipe_fd, readbuf, 6);
readbuf[numread] = 0;
readbuf[127] = 0;
close(mPipe_fd);

@ -330,6 +330,8 @@ int main (int argc, char *argv[])
if (hide_event == true) {
// Let anyone listening to our interface know that an SAK keypress was received
write(mPipe_fd_out, "SAK\n\r", 6);
write(mPipe_fd_out, "SAK\n\r", 6);
write(mPipe_fd_out, "SAK\n\r", 6);
}
}
}

Loading…
Cancel
Save