diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-08 14:49:40 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-08 14:49:40 +0800 |
commit | 299369f41fae2c8ab2886ef41ad24815241707aa (patch) | |
tree | 6e35e4527fe15ae8e7484e492e976394da97a22b /include/perm.h | |
parent | 0472f505661582dcaccf2d1a024abf14f2c75e5b (diff) | |
download | pttbbs-299369f41fae2c8ab2886ef41ad24815241707aa.tar pttbbs-299369f41fae2c8ab2886ef41ad24815241707aa.tar.gz pttbbs-299369f41fae2c8ab2886ef41ad24815241707aa.tar.bz2 pttbbs-299369f41fae2c8ab2886ef41ad24815241707aa.tar.lz pttbbs-299369f41fae2c8ab2886ef41ad24815241707aa.tar.xz pttbbs-299369f41fae2c8ab2886ef41ad24815241707aa.tar.zst pttbbs-299369f41fae2c8ab2886ef41ad24815241707aa.zip |
fix race condition of user registeration (as well as while restoring a
backed-up account):
Procoess A Process B
====================== =====================
uid = searchuser("")
uid = searchuser("")
setuserid(uid, userid)
setuserid(uid, userid)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3007 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/perm.h')
0 files changed, 0 insertions, 0 deletions