summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-04-08 22:22:27 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-04-08 22:22:27 +0800
commit6d811591b38485ff561c8c8491e249e234493eb1 (patch)
treeacd518def439714e2c7720583112ad41a41f70ac /mbbsd
parent0b9a4c1c4179fe95fa86e633a46518fab9925bba (diff)
downloadpttbbs-6d811591b38485ff561c8c8491e249e234493eb1.tar
pttbbs-6d811591b38485ff561c8c8491e249e234493eb1.tar.gz
pttbbs-6d811591b38485ff561c8c8491e249e234493eb1.tar.bz2
pttbbs-6d811591b38485ff561c8c8491e249e234493eb1.tar.lz
pttbbs-6d811591b38485ff561c8c8491e249e234493eb1.tar.xz
pttbbs-6d811591b38485ff561c8c8491e249e234493eb1.tar.zst
pttbbs-6d811591b38485ff561c8c8491e249e234493eb1.zip
random sleep to make race condition harder.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3339 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/mbbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index f71785e8..b4a150f4 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -586,7 +586,7 @@ multi_user_check(void)
} else {
fprintf(stderr, "id=%s ui->pid=0\n", cuser.userid);
}
- sleep(1);
+ usleep(random()%2000000+1000000); // 1~3s
} while(getotherlogin(3) != NULL);
} else {
/* deny login if still have 3 */