Add new os_kill
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run

This commit is contained in:
Andrea Mazzoleni 2026-07-28 23:27:12 +02:00
parent 18f5f99cad
commit 5da9b81d58
3 changed files with 25 additions and 0 deletions

View file

@ -140,6 +140,13 @@ pid_t os_wait(pid_t pid, int* status);
*/
int os_term(pid_t pid);
/**
* Forcibly terminate a process.
* \param pid Process ID of the process to kill.
* \return 0 on success, -1 on failure.
*/
int os_kill(pid_t pid);
/**
* Fork and execute a verified executable, discarding all I/O.
*