cleanup, docs

This commit is contained in:
root
2026-06-16 23:02:45 +00:00
parent ea08d5f28b
commit b8b56cf3dd
160 changed files with 1076 additions and 511 deletions
+4 -2
View File
@@ -1,5 +1,5 @@
:sig
int task_kill(pid_t pid, int sig = 0)
int task_kill(pid_t pid, s32 sig = 0)
:params
pid : PID of the process
@@ -22,4 +22,6 @@ Wraps the standard POSIX `kill()` function for positive process IDs.
Passing `0` as the signal performs an existence and permission check without actually delivering a signal.
:example
print("task_kill example\n");
task("doc-demo-kill", []() { usleep(3000000); });
pid_t pid = task_pid("doc-demo-kill");
print(pid > 0 && task_kill(pid) == 0 ? "task signalled to stop" : "no task to kill", "\n");