From 47c69e9def7c8a144bea3f846d3b119180230a70 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 9 Jun 2023 01:51:23 +0300 Subject: [PATCH] Userspace: add exit to shell --- userspace/Shell/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/userspace/Shell/main.cpp b/userspace/Shell/main.cpp index 4f9e7e1cf4..dc28c5894c 100644 --- a/userspace/Shell/main.cpp +++ b/userspace/Shell/main.cpp @@ -41,6 +41,10 @@ int execute_command(BAN::StringView command) fflush(stdout); return 0; } + else if (args.front() == "exit"sv) + { + exit(0); + } else { pid_t pid = fork();