Attempt to fix failure to logon if smart card is inserted during system startup

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/smartcardauth@1260425 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru v3.5.13
tpearson 13 years ago
parent 2be53f6862
commit 6cbb68bb10

@ -683,9 +683,9 @@ int main (int argc, char *argv[])
}
else
{
// Could not find any existing kdm sessions; start a new one
systemexec(TRINITY_BIN_PREFIX "kdmctl -g reserve");
usleep(3000000);
// KDM is probably not running yet, as its control directory does not exist
// Wait for 10 seconds and try again
usleep(10000000);
}
}

Loading…
Cancel
Save