summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-07 18:00:13 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-07 18:00:13 +0800
commitc230052e2aab719a4bda0ecaddbca2dcdff2f5e5 (patch)
tree51edfd0b12b0cffd6de4bab0da501c9f47874d92
parent15940b3de124b0df563d44a8e3be02bc49a72256 (diff)
downloadpttbbs-c230052e2aab719a4bda0ecaddbca2dcdff2f5e5.tar
pttbbs-c230052e2aab719a4bda0ecaddbca2dcdff2f5e5.tar.gz
pttbbs-c230052e2aab719a4bda0ecaddbca2dcdff2f5e5.tar.bz2
pttbbs-c230052e2aab719a4bda0ecaddbca2dcdff2f5e5.tar.lz
pttbbs-c230052e2aab719a4bda0ecaddbca2dcdff2f5e5.tar.xz
pttbbs-c230052e2aab719a4bda0ecaddbca2dcdff2f5e5.tar.zst
pttbbs-c230052e2aab719a4bda0ecaddbca2dcdff2f5e5.zip
reentrant
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@464 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/board.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index b8ef6c08..2f2dff2b 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.49 2002/08/07 09:32:38 in2 Exp $ */
+/* $Id: board.c,v 1.50 2002/08/07 10:00:13 in2 Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -275,7 +275,10 @@ save_brdbuf()
{
int fd, size;
char fname[60];
-
+ static char reentrant = 0;
+ if ( reentrant )
+ return;
+ reentrant = 1;
#ifdef OUTTA_CACHE
outta_swapin((void **)&favbuf, favlength, 'f');
outta_swapin((void **)&zapbuf, zaplength, 'z');