summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-09-27 00:24:38 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-09-27 00:24:38 +0800
commit32eef65d3904b5f7f4b5b0d49a3ff64e444af1c8 (patch)
treeb312e554dcb8e2654e511d3d42458d92734fc56b /mbbsd/board.c
parent20f4eb0044ca077e5b3eee0bd45db5416ffc635c (diff)
downloadpttbbs-32eef65d3904b5f7f4b5b0d49a3ff64e444af1c8.tar
pttbbs-32eef65d3904b5f7f4b5b0d49a3ff64e444af1c8.tar.gz
pttbbs-32eef65d3904b5f7f4b5b0d49a3ff64e444af1c8.tar.bz2
pttbbs-32eef65d3904b5f7f4b5b0d49a3ff64e444af1c8.tar.lz
pttbbs-32eef65d3904b5f7f4b5b0d49a3ff64e444af1c8.tar.xz
pttbbs-32eef65d3904b5f7f4b5b0d49a3ff64e444af1c8.tar.zst
pttbbs-32eef65d3904b5f7f4b5b0d49a3ff64e444af1c8.zip
avoid reentrant
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@531 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 4d76e8dd..c7c84262 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.60 2002/09/26 16:18:35 in2 Exp $ */
+/* $Id: board.c,v 1.61 2002/09/26 16:24:38 in2 Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -280,6 +280,11 @@ save_brdbuf()
{
int fd, size;
char fname[60];
+ static char reentrant = 0;
+
+ if( reentrant )
+ return;
+ reentrant = 1;
size = numboards * sizeof(int);
setuserfile(fname, STR_BBSRC);