Date: Fri, 30 May 2025 15:57:27 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 1145891d07ed - main - kboot: Create quit command Message-ID: <202505301557.54UFvR49079464@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=1145891d07ed04db76c1e5f85650ac665699b1bc commit 1145891d07ed04db76c1e5f85650ac665699b1bc Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2025-05-30 14:15:04 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2025-05-30 15:56:51 +0000 kboot: Create quit command Create a command that just quits out of the loader. Useful for debugging. Sponsored by: Netflix Reviewed by: tsoome Differential Revision: https://reviews.freebsd.org/D50589 --- stand/kboot/kboot/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/stand/kboot/kboot/main.c b/stand/kboot/kboot/main.c index 3f1a4e6a86c2..a8c725a514be 100644 --- a/stand/kboot/kboot/main.c +++ b/stand/kboot/kboot/main.c @@ -655,3 +655,15 @@ command_fdt(int argc, char *argv[]) COMMAND_SET(fdt, "fdt", "flattened device tree handling", command_fdt); #endif + +/* + * Support quitting. + */ +static int +command_quit(int argc, char *argv[]) +{ + exit(0); + return (CMD_OK); +} + +COMMAND_SET(quit, "quit", "exit the program", command_quit);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505301557.54UFvR49079464>