Notes on process group control for workspace separation - lmmx/devnotes GitHub Wiki
Alternative approach to full on containers(?) maybe just send SIGSTOP
to ‘pause’ a set of processes by process group ID
setsid <pgid>
for each workspace then kill -STOP <pgid>
to pause it then kill -CONT <pgid>
to unpause)
-
TODO: clarify if
setsid
is session ID (as name suggests) rather than process group id? -
Good dive into process exploration with
ps j -A
- sending a negative process value to
kill
kills that process group ID rather than the process ID
- sending a negative process value to
-
pkill
which takes-g
argument for process group ID