diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-01-19 09:29:40 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-01-19 09:29:40 +0800 |
commit | 28760d3b4c23271cf530cacc32d5b108a6c4ca0c (patch) | |
tree | 6e0e0bb98c258fc63e87fe04064d9ce6569f6eaf /mbbsd/mbbsd.c | |
parent | 2309a21b1d58a111b0d29bab3d74bf6c255d6bbb (diff) | |
download | pttbbs-28760d3b4c23271cf530cacc32d5b108a6c4ca0c.tar pttbbs-28760d3b4c23271cf530cacc32d5b108a6c4ca0c.tar.gz pttbbs-28760d3b4c23271cf530cacc32d5b108a6c4ca0c.tar.bz2 pttbbs-28760d3b4c23271cf530cacc32d5b108a6c4ca0c.tar.lz pttbbs-28760d3b4c23271cf530cacc32d5b108a6c4ca0c.tar.xz pttbbs-28760d3b4c23271cf530cacc32d5b108a6c4ca0c.tar.zst pttbbs-28760d3b4c23271cf530cacc32d5b108a6c4ca0c.zip |
critical memory usage
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@632 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index e85215cc..f0431a12 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1,4 +1,4 @@ -/* $Id: mbbsd.c,v 1.63 2003/01/17 10:16:17 kcwu Exp $ */ +/* $Id: mbbsd.c,v 1.64 2003/01/19 01:29:40 in2 Exp $ */ #include "bbs.h" #define SOCKET_QLEN 4 @@ -942,6 +942,9 @@ 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); |