Userspace: add exit to shell

This commit is contained in:
Bananymous 2023-06-09 01:51:23 +03:00
parent 9728947d5d
commit 47c69e9def
1 changed files with 4 additions and 0 deletions

View File

@ -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();