summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-05 11:06:11 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-05 11:06:11 +0800
commit419ad167ec6a216708b61c942fc54572858a8bfb (patch)
treea6a06a7a6b593046e3b6bfbd87d185708a14021e
parentcc96993589cd6de2f08e7ad4c5c66cbf1bb447fa (diff)
downloadpttbbs-419ad167ec6a216708b61c942fc54572858a8bfb.tar
pttbbs-419ad167ec6a216708b61c942fc54572858a8bfb.tar.gz
pttbbs-419ad167ec6a216708b61c942fc54572858a8bfb.tar.bz2
pttbbs-419ad167ec6a216708b61c942fc54572858a8bfb.tar.lz
pttbbs-419ad167ec6a216708b61c942fc54572858a8bfb.tar.xz
pttbbs-419ad167ec6a216708b61c942fc54572858a8bfb.tar.zst
pttbbs-419ad167ec6a216708b61c942fc54572858a8bfb.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@292 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/board.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 92a6c6e9..7da01d72 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.31 2002/06/05 02:51:48 ptt Exp $ */
+/* $Id: board.c,v 1.32 2002/06/05 03:06:11 ptt Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -656,21 +656,20 @@ static void dozap(int num){
void delutmpbid(int bid, userinfo_t *utmp)
{
userinfo_t *u;
- //if (brdshm->busystate!=1 && now-brdshm->busystate_b[bid-1]>=10)
+ while (brdshm->busystate!=1 && now-brdshm->busystate_b[bid-1]>=10)
+ sleep(1);
// Ptt:有問題都是這邊沒有執行到就爛掉了
- {
- brdshm->busystate_b[bid-1]=now;
- u=bcache[bid-1].u;
- if(u!=(void*)utmp)
+ brdshm->busystate_b[bid-1]=now;
+ u=bcache[bid-1].u;
+ if(u!=(void*)utmp)
{
for(;u && u->nextbfriend != (void*)utmp; u=u->nextbfriend);
if(u) u->nextbfriend = utmp->nextbfriend;
}
- else
+ else
bcache[bid-1].u=utmp->nextbfriend;
- if(bcache[bid-1].nuser>0) bcache[bid-1].nuser--;
- brdshm->busystate_b[bid-1]=0;
- }
+ if(bcache[bid-1].nuser>0) bcache[bid-1].nuser--;
+ brdshm->busystate_b[bid-1]=0;
}
void setutmpbid(int bid)