Skip to content
pi-c Processes
Login

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.