mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-17 16:51:33 -04:00
Complete function attributes
This commit is contained in:
parent
31e061f4d0
commit
f01994fa8c
@ -74,7 +74,7 @@ std::expected<pid_t> exec(const std::string& path, const std::vector<std::string
|
||||
/*!
|
||||
* \brief Kill the current process
|
||||
*/
|
||||
void kill_current_process();
|
||||
void kill_current_process() __attribute__((noreturn));
|
||||
|
||||
/*!
|
||||
* \brief Wait for the given process to terminate
|
||||
|
@ -570,8 +570,8 @@ void sc_wait_for_packet_ms(interrupt::syscall_regs* regs){
|
||||
regs->rbx = reinterpret_cast<size_t>(user_buffer);
|
||||
}
|
||||
|
||||
void sc_kill(interrupt::syscall_regs* /*regs*/) __attribute((noreturn));
|
||||
void sc_kill(interrupt::syscall_regs* /*regs*/){
|
||||
//TODO Do something with return code
|
||||
scheduler::kill_current_process();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user