Kernel/LibC: Add bareboness signals

You can now call raise() to raise a signal. Signal handlers are
not yet supported, but the handling works :)
This commit is contained in:
Bananymous
2023-07-21 15:45:02 +03:00
parent a1db032ba9
commit c2cf98e32f
14 changed files with 126 additions and 3 deletions

View File

@@ -260,6 +260,10 @@ int execute_command(BAN::Vector<BAN::String>& args)
while (*current)
printf("%s\n", *current++);
}
else if (args.front() == "raise"sv)
{
raise(SIGSEGV);
}
else if (args.front() == "cd"sv)
{
if (args.size() > 2)