From 0b78fad0c65120fda32f706a0bcaff12e0aa0fc1 Mon Sep 17 00:00:00 2001 From: Bernerd Schaefer Date: Wed, 14 May 2014 11:50:15 +0200 Subject: [PATCH] nsinit.DefaultCreateCommand sets Pdeathsig to SIGKILL Docker-DCO-1.1-Signed-off-by: Bernerd Schaefer (github: bernerdschaefer) Upstream-commit: 6a1d76bc7bc589b53530c03720022f0095b65d55 Component: engine --- components/engine/pkg/libcontainer/nsinit/exec.go | 1 + 1 file changed, 1 insertion(+) diff --git a/components/engine/pkg/libcontainer/nsinit/exec.go b/components/engine/pkg/libcontainer/nsinit/exec.go index 03e0f4b9aa..fbc7512047 100644 --- a/components/engine/pkg/libcontainer/nsinit/exec.go +++ b/components/engine/pkg/libcontainer/nsinit/exec.go @@ -123,6 +123,7 @@ func DefaultCreateCommand(container *libcontainer.Container, console, rootfs, da command.Env = append(os.Environ(), env...) system.SetCloneFlags(command, uintptr(GetNamespaceFlags(container.Namespaces))) + command.SysProcAttr.Pdeathsig = syscall.SIGKILL command.ExtraFiles = []*os.File{pipe} return command