aristanetworks / bst

A one-stop shop for process isolation
MIT License
101 stars 9 forks source link

init: don't put main child into its own process group #40

Closed Snaipe closed 4 years ago

Snaipe commented 4 years ago

We lose the ability to kill the main process subtree, but it's fine considering that init terminates when it reaps the main child, which kills the rest of the pid namespace.

This change was motivated by bst rendering processes unkillable if they were put in the background. fg would end up putting bst back in the background rather than the new process group.

Snaipe commented 4 years ago

merged in 52fba4868b2089a44a023ece502240b5e01593d6.