mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-17 08:37:17 -04:00
Kill a process that does a wrong system call
This commit is contained in:
parent
3c253353b8
commit
3d30a355af
@ -590,6 +590,8 @@ void system_call_entry(interrupt::syscall_regs* regs){
|
||||
logging::logf(logging::log_level::ERROR, "Invalid system call %h from %u\n", code, scheduler::get_pid());
|
||||
|
||||
k_print_line("Invalid system call");
|
||||
|
||||
scheduler::kill_current_process();
|
||||
}
|
||||
|
||||
void install_system_calls(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user