Kernel: Implement static Process::kill()

This allows killing processes even when there does not exist a current
thread.
This commit is contained in:
2024-09-24 13:16:43 +03:00
parent 1b0086217c
commit 348d04f7f5
3 changed files with 22 additions and 10 deletions

View File

@@ -171,6 +171,7 @@ namespace Kernel
BAN::ErrorOr<long> sys_tty_ctrl(int fildes, int command, int flags);
static BAN::ErrorOr<void> kill(pid_t pid, int signal);
BAN::ErrorOr<long> sys_kill(pid_t pid, int signal);
BAN::ErrorOr<long> sys_sigaction(int signal, const struct sigaction* act, struct sigaction* oact);
BAN::ErrorOr<long> sys_sigpending(sigset_t* set);