0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-14 00:34:18 +01:00

construct: Add conf item for console stack size; minor cleanup.

This commit is contained in:
Jason Volk 2018-11-13 09:43:32 -08:00
parent 9f6faf13ce
commit 8931ce8b38

View file

@ -15,7 +15,13 @@ using namespace ircd;
IRCD_EXCEPTION_HIDENAME(ircd::error, bad_command)
const char *const generic_message
bool console_active;
bool console_inwork;
ircd::ctx::ctx *console_ctx;
ircd::module *console_module;
const char *const
generic_message
{R"(
*** - To end the console session: type exit, or ctrl-d -> EOF
*** - To shutdown cleanly: type die, or ctrl-\ -> SIGQUIT
@ -23,16 +29,13 @@ const char *const generic_message
***
)"};
const size_t stack_sz
conf::item<size_t>
stack_sz
{
8_MiB
{ "name", "construct.console.stack.size" },
{ "default", long(2_MiB) },
};
bool console_active;
bool console_inwork;
ircd::ctx::ctx *console_ctx;
ircd::module *console_module;
static void check_console_active();
static void console_fini();
static void console_init();