Kernel: Implement static Process::kill()
This allows killing processes even when there does not exist a current thread.
This commit is contained in:
@@ -273,7 +273,7 @@ namespace Kernel
|
||||
// ^C
|
||||
if (ch == '\x03')
|
||||
{
|
||||
if (auto ret = Process::current().sys_kill(-m_foreground_pgrp, SIGINT); ret.is_error())
|
||||
if (auto ret = Process::kill(-m_foreground_pgrp, SIGINT); ret.is_error())
|
||||
dwarnln("TTY: {}", ret.error());
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user