summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-22 20:02:50 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-22 20:02:50 +0800
commit275c6f924c9984b1d5b135b79d0d6e3a15384b81 (patch)
treebc2e5a8367fc1c94713adaac80612cb6499544e3
parent1d06dec007c735d98a01e8ed9adc922cf4a8409b (diff)
downloadpttbbs-275c6f924c9984b1d5b135b79d0d6e3a15384b81.tar
pttbbs-275c6f924c9984b1d5b135b79d0d6e3a15384b81.tar.gz
pttbbs-275c6f924c9984b1d5b135b79d0d6e3a15384b81.tar.bz2
pttbbs-275c6f924c9984b1d5b135b79d0d6e3a15384b81.tar.lz
pttbbs-275c6f924c9984b1d5b135b79d0d6e3a15384b81.tar.xz
pttbbs-275c6f924c9984b1d5b135b79d0d6e3a15384b81.tar.zst
pttbbs-275c6f924c9984b1d5b135b79d0d6e3a15384b81.zip
remove cmsignal()
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@706 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--util/shmctl.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/util/shmctl.c b/util/shmctl.c
index 20850b00..a772bd42 100644
--- a/util/shmctl.c
+++ b/util/shmctl.c
@@ -1,4 +1,4 @@
-/* $Id: shmctl.c,v 1.33 2003/02/17 18:36:55 in2 Exp $ */
+/* $Id: shmctl.c,v 1.34 2003/03/22 12:02:50 in2 Exp $ */
#include "bbs.h"
#include <sys/wait.h>
@@ -369,22 +369,6 @@ int listpid(int argc, char **argv)
return 0;
}
-#ifdef CRITICAL_MEMORY
-int cmsignal(int argc, char **argv)
-{
- int i;
- time_t timebound = time(NULL) - 1200;
- char buf[32];
- for( i = 0 ; i < USHM_SIZE ; ++i )
- if( SHM->uinfo[i].pid > 0 && SHM->uinfo[i].lastact < timebound ){
- printf("CMSIGNAL: pid: %6d, lastact: %s\n",
- SHM->uinfo[i].pid, CTIMEx(buf, SHM->uinfo[i].lastact));
- kill(SHM->uinfo[i].pid, CMSIGNAL);
- }
- return 0;
-}
-#endif
-
struct {
int (*func)(int, char **);
char *cmd, *descript;