my personal dwl config managed with pijul.

Run startup_cmd in new session and kill the entire group

When a user's startup_cmd is a little more complex, e.g. a shell script, and forks off several processes, then killing only the main child pid might leave unwanted processes behind on exit. Not all children will notice when their parent or the compositor has quit.

To fix this, put startup_cmd into its own session and process group, and kill the entire group on exit.

Created by  Peter Hofmann  on June 18, 2024
45XAP6XROOLWBRNKXYNTC4QFR6AP6PNRXU3XC7PBQKAEQJ3LOZ6AC
Change contents