B: start containerd process in its own process group
this way, if the concourse process is signalled, the signal won't
automatically propagate to the containerd, killing it too early (it has
to outlive the garden server)
@@ -155,6 +155,7 @@ func (cmd *WorkerCommand) containerdRunner(logger lager.Logger) (ifrit.Runner, e
command.Stderr = os.Stderr
command.SysProcAttr = &syscall.SysProcAttr{
Pdeathsig: syscall.SIGKILL,
+ Setpgid: true,
}
members := grouper.Members{}
