Skip to content
pi-c Artifact [c8fb5b6a7a]
Login

Artifact [c8fb5b6a7a]

Artifact c8fb5b6a7a9a67a2b688fa5df9a1c9cc6fbf0c0320ad1c1f3d5e6e652c8d2858:


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.