Artifact 33f5a57812e6f9f3b56153bc5ba8e4e135351071b59b2056b062654ebe929dcc:
- File docs/manual/processes.md — part of check-in [d66dc3f8af] at 2026-11-21 11:05:58 on branch docs-reorg — docs: short README; manual, reference, dev, design and archive under docs/; AGENTS.md; docs.sh checks docs against code; changelog.inc built at build time (user: dmestas, size: 835) [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 picu_proc of ~/.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.