summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-26 00:34:35 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-26 00:34:35 +0800
commitcd4af722552c4606f8350596c4c56284800763ec (patch)
tree57ec99123ec6be0aa762206c2d7742378733036b /mbbsd/board.c
parent07d2ee13b16efdcf710ca7a3a675eb9518b1e319 (diff)
downloadpttbbs-cd4af722552c4606f8350596c4c56284800763ec.tar
pttbbs-cd4af722552c4606f8350596c4c56284800763ec.tar.gz
pttbbs-cd4af722552c4606f8350596c4c56284800763ec.tar.bz2
pttbbs-cd4af722552c4606f8350596c4c56284800763ec.tar.lz
pttbbs-cd4af722552c4606f8350596c4c56284800763ec.tar.xz
pttbbs-cd4af722552c4606f8350596c4c56284800763ec.tar.zst
pttbbs-cd4af722552c4606f8350596c4c56284800763ec.zip
ofix dead lock
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@231 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 910322d8..5288fedb 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.21 2002/05/25 09:33:22 ptt Exp $ */
+/* $Id: board.c,v 1.22 2002/05/25 16:34:35 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -694,9 +694,9 @@ void setutmpbid(int bid)
userinfo_t *u;
if(id)
{
- if (brdshm->busystate!=1 && brdshm->busystate_b[id-1]!=1)
+ if (brdshm->busystate!=1 && now-brdshm->busystate_b[id-1]>=10)
{
- brdshm->busystate_b[id-1]=1;
+ brdshm->busystate_b[id-1]=now;
u=bcache[id-1].u;
if(u!=(void*)currutmp)
{