summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-15 20:06:39 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-15 20:06:39 +0800
commit17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b (patch)
treefb9f87bd51cb44d3d393c072964e6fbcf2de20d5
parent8f443aa1887bcae33ffbd46c1d2119f23ebcffde (diff)
downloadpttbbs-17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b.tar
pttbbs-17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b.tar.gz
pttbbs-17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b.tar.bz2
pttbbs-17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b.tar.lz
pttbbs-17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b.tar.xz
pttbbs-17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b.tar.zst
pttbbs-17ba8eb1ac4bb486a1f39dbb7abd6d73a3dbbd6b.zip
remove sigfree
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@695 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/board.c20
-rw-r--r--mbbsd/mbbsd.c5
2 files changed, 2 insertions, 23 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 8d91f3fe..e8fbe5ca 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.84 2003/02/26 15:44:21 victor Exp $ */
+/* $Id: board.c,v 1.85 2003/03/15 12:06:39 in2 Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -250,12 +250,6 @@ void FREE(void *ptr)
vmsg("critical free %d bytes", size);
#endif
}
-
-void sigfree(int sig)
-{
- if( !choose_board_depth )
- save_brdbuf();
-}
#endif
void load_brdbuf(void)
@@ -271,11 +265,7 @@ void load_brdbuf(void)
favsize += sizeof(int);
#endif
-#ifdef CRITICAL_MEMORY
- zapbuf = (int *)MALLOC(size);
-#else
zapbuf = (int *)malloc(size);
-#endif
favbuf = (char *)malloc(favsize);
#ifdef MEM_CHECK
@@ -368,17 +358,9 @@ save_brdbuf(void)
close(fd);
}
#ifdef MEM_CHECK
-# ifdef CRITICAL_MEMORY
- FREE(&zapbuf[-1]);
-# else
free(&zapbuf[-1]);
-# endif
#else
-# ifdef CRITICAL_MEMORY
- FREE(zapbuf);
-# else
free(zapbuf);
-# endif
#endif
zapbuf = NULL;
}
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 3a5828b0..3aee5ce4 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1,4 +1,4 @@
-/* $Id: mbbsd.c,v 1.66 2003/02/10 17:41:45 in2 Exp $ */
+/* $Id: mbbsd.c,v 1.67 2003/03/15 12:06:39 in2 Exp $ */
#include "bbs.h"
#define SOCKET_QLEN 4
@@ -942,9 +942,6 @@ start_client()
signal(SIGFPE, abort_bbs_debug);
signal(SIGBUS, abort_bbs_debug);
signal(SIGSEGV, abort_bbs_debug);
-#ifdef CRITICAL_MEMORY
- signal(CMSIGNAL, sigfree);
-#endif
signal_restart(SIGUSR1, talk_request);
signal_restart(SIGUSR2, write_request);