From 275c6f924c9984b1d5b135b79d0d6e3a15384b81 Mon Sep 17 00:00:00 2001 From: in2 Date: Sat, 22 Mar 2003 12:02:50 +0000 Subject: remove cmsignal() git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@706 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/shmctl.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'util') 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 @@ -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; -- cgit v1.2.3