mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:18:12 +00:00
Implement basic sys$kill() and add a /bin/kill
All it can do right now is send SIGKILL which just murders the target task.
This commit is contained in:
parent
7be30a2fa8
commit
3218f00099
10 changed files with 117 additions and 9 deletions
|
@ -80,7 +80,6 @@ DWORD handle(DWORD function, DWORD arg1, DWORD arg2, DWORD arg3)
|
|||
kprintf("syscall: seek(%d, %d)\n", arg1, arg2);
|
||||
return current->sys$seek((int)arg1, (int)arg2);
|
||||
case Syscall::PosixKill:
|
||||
kprintf("syscall: kill(%d, %d)\n", arg1, arg2);
|
||||
return current->sys$kill((pid_t)arg1, (int)arg2);
|
||||
case Syscall::PosixGetuid:
|
||||
return current->sys$getuid();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue