Add archive helpers and harden task runtime

This commit is contained in:
udo
2026-05-21 00:00:23 +00:00
parent 9f7625c7fd
commit 02e153a6a7
71 changed files with 12817 additions and 305 deletions
+4 -2
View File
@@ -9,9 +9,11 @@ return value : the process ID of the task
>task
:content
Checks whether a process with the given `key` is running and returns its PID if it is.
Checks whether a process with the given `key` is running anywhere in the runtime instance and returns its PID if it is.
Returns `0` when no matching task is active.
Returns `0` when no matching task is active or task state cannot be read safely. Stale task status files are removed when the recorded PID is no longer alive.
New task status records include the Linux process start tick from `/proc/<pid>/stat`, so `task_pid()` can reject a stale status file if the PID has exited and the numeric PID has since been reused by another process.
Related: