diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-24 00:06:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-24 00:06:26 +0000 |
commit | 6cbb68bb104e86c26cdc310b018fa6439e842db3 (patch) | |
tree | f4701f6d0a40780409c98721a974cada426d30c6 | |
parent | 2be53f6862b8fea535fa441c17cd67c234af8c1e (diff) | |
download | smartcardauth-6cbb68bb104e86c26cdc310b018fa6439e842db3.tar.gz smartcardauth-6cbb68bb104e86c26cdc310b018fa6439e842db3.zip |
Attempt to fix failure to logon if smart card is inserted during system startupv3.5.13
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/smartcardauth@1260425 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | src/smartauthmon.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/smartauthmon.cpp b/src/smartauthmon.cpp index f2b93df..a5aaebf 100644 --- a/src/smartauthmon.cpp +++ b/src/smartauthmon.cpp @@ -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); } } |