Userspace: add exit to shell

This commit is contained in:
Bananymous 2023-06-09 01:51:23 +03:00
parent 7f34d00c95
commit e001eecb7b
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();