summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-23 10:39:02 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-23 10:39:02 +0800
commite84a29034ca2aaeedce5f2cd84e68264fb9a3b46 (patch)
tree07858050538b08d5c01d80c10e62c97e7ee72a6a /util
parent25c4be0984fa21112eec92a28acda58eacfd9016 (diff)
downloadpttbbs-e84a29034ca2aaeedce5f2cd84e68264fb9a3b46.tar
pttbbs-e84a29034ca2aaeedce5f2cd84e68264fb9a3b46.tar.gz
pttbbs-e84a29034ca2aaeedce5f2cd84e68264fb9a3b46.tar.bz2
pttbbs-e84a29034ca2aaeedce5f2cd84e68264fb9a3b46.tar.lz
pttbbs-e84a29034ca2aaeedce5f2cd84e68264fb9a3b46.tar.xz
pttbbs-e84a29034ca2aaeedce5f2cd84e68264fb9a3b46.tar.zst
pttbbs-e84a29034ca2aaeedce5f2cd84e68264fb9a3b46.zip
correct revision 2210
add reloadfcache to shmctl git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2209 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/shmctl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/shmctl.c b/util/shmctl.c
index 54757795..e1864dab 100644
--- a/util/shmctl.c
+++ b/util/shmctl.c
@@ -708,6 +708,13 @@ int torb(int argc, char **argv)
return 0;
}
+int rlfcache(int argc, char **argv)
+{
+ reload_fcache();
+ puts("fcache reloaded");
+ return 0;
+}
+
struct {
int (*func)(int, char **);
char *cmd, *descript;
@@ -733,6 +740,7 @@ struct {
{hotboard, "hotboard", "list boards of most bfriends"},
{usermode, "usermode", "list #users in the same mode"},
{torb, "reloadbcache", "reload bcache"},
+ {rlfcache, "reloadfcache", "reload fcache"},
{NULL, NULL, NULL} };
extern char ** environ;