Moving the rest of runc to x/sys/unix

Signed-off-by: Christy Perez <christy@linux.vnet.ibm.com>
This commit is contained in:
Christy Perez
2017-05-11 11:06:37 -04:00
parent 3d7cb4293c
commit 187d2d85be
4 changed files with 46 additions and 40 deletions
+3 -1
View File
@@ -11,10 +11,12 @@ import (
"github.com/opencontainers/runc/libcontainer"
"github.com/urfave/cli"
"golang.org/x/sys/unix"
)
func killContainer(container libcontainer.Container) error {
_ = container.Signal(syscall.SIGKILL, false)
_ = container.Signal(unix.SIGKILL, false)
for i := 0; i < 100; i++ {
time.Sleep(100 * time.Millisecond)
if err := container.Signal(syscall.Signal(0), false); err != nil {