Skip to content

Notes on process group control for workspace separation

Louis Maddox edited this page Sep 18, 2020 · 5 revisions

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
  • pkill which takes -g argument for process group ID

Clone this wiki locally