mirror of
https://github.com/opencontainers/runc.git
synced 2025-10-16 12:31:51 +08:00
Add parent death signal to the container config
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -117,8 +117,7 @@ func (c *linuxContainer) commandTemplate(process *Process) *exec.Cmd {
|
||||
if cmd.SysProcAttr == nil {
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{}
|
||||
}
|
||||
// TODO: add pdeath to config for a container
|
||||
cmd.SysProcAttr.Pdeathsig = syscall.SIGKILL
|
||||
cmd.SysProcAttr.Pdeathsig = syscall.Signal(c.config.ParentDeathSignal)
|
||||
return cmd
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user