Artifact b42f2397e2a34176371793a16e772373cc16938391ad37faf28a2c19158cf1e8:
- File docs/manual/processes.md — part of check-in [70b0996880] at 2026-11-24 19:10:36 on branch wake-1 — Loops: the pic_wake record, a fire as one transaction through the inbox, /loop, /stop, pic loop and the footer (user: dmestas, size: 911) [annotate] [blame] [check-ins using] [more...]
Processes
pic ps lists the processes pic itself started that are still running: hooks (sync and async), bash
tool and ! commands, and the terminal interface's request children. pic ps --all adds those
finished in the last 7 days, with their exit status; --json prints JSON. pic ps --kill ID (or
--kill --all) sends SIGTERM to the recorded process group, then SIGKILL after 3 seconds, and only
to a process that is still the one recorded (its pid is alive and its start time matches, so a
reused pid is never signaled). The records live in ~/.pic/pic.sqlite, so they span workspaces. At
startup pic prints one line to stderr, at most once an hour, if processes of earlier runs are still
running. It is not a watcher: it lists what pic recorded. Processes a hook script starts on its own
are not tracked. After the processes, pic ps lists the workspace's loops that have not
ended.