/*--------------------------------------------------------------------*/
+static void
+ccf_panic(struct cli *cli, const char * const *av, void *priv)
+{
+
+ (void)cli;
+ (void)av;
+ (void)priv;
+ assert(!strcmp("", "You asked for it"));
+}
+
+/*--------------------------------------------------------------------*/
+
static struct cli_proto master_cmds[] = {
{ CLI_PING, cli_func_ping },
{ CLI_HELP, ccf_help, NULL },
{ "debug.sizeof", "debug.sizeof",
"\tDump sizeof various data structures\n",
0, 0, cli_debug_sizeof },
+ { "debug.panic.worker", "debug.panic.worker",
+ "\tPanic the worker process.\n",
+ 0, 0, ccf_panic },
{ NULL }
};
{ CLI_PARAM_SET, mcf_param_set, NULL },
{ CLI_QUIT, mcf_close, NULL},
-#if 0
- { CLI_SERVER_RESTART },
- { CLI_ZERO },
- { CLI_VERBOSE, m_cli_func_verbose, NULL },
-#endif
+ { NULL }
+};
+
+/*--------------------------------------------------------------------*/
+
+
+static void
+mcf_panic(struct cli *cli, const char * const *av, void *priv)
+{
+
+ (void)cli;
+ (void)av;
+ (void)priv;
+ assert(!strcmp("", "You asked for it"));
+}
+
+static struct cli_proto cli_debug[] = {
+ { "debug.panic.master", "debug.panic.master",
+ "\tPanic the master process.\n",
+ 0, 0, mcf_panic, NULL},
{ NULL }
};
return (0);
cli_dispatch(cp->cli, cli_proto, p);
+ if (cp->cli->result == CLIS_UNKNOWN)
+ cli_dispatch(cp->cli, cli_debug, p);
if (cp->cli->result == CLIS_UNKNOWN) {
/*
* Command not recognized in master, try cacher if it is