From 32eef65d3904b5f7f4b5b0d49a3ff64e444af1c8 Mon Sep 17 00:00:00 2001 From: in2 Date: Thu, 26 Sep 2002 16:24:38 +0000 Subject: avoid reentrant git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@531 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/board.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mbbsd') 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); -- cgit v1.2.3