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 -2
View File
@@ -9,7 +9,6 @@ import (
"os"
"path/filepath"
"strconv"
"syscall"
"github.com/Sirupsen/logrus"
"github.com/coreos/go-systemd/activation"
@@ -20,6 +19,8 @@ import (
"github.com/opencontainers/runc/libcontainer/utils"
"github.com/opencontainers/runtime-spec/specs-go"
"github.com/urfave/cli"
"golang.org/x/sys/unix"
)
var errEmptyID = errors.New("container id cannot be empty")
@@ -316,7 +317,7 @@ func (r *runner) destroy() {
}
func (r *runner) terminate(p *libcontainer.Process) {
_ = p.Signal(syscall.SIGKILL)
_ = p.Signal(unix.SIGKILL)
_, _ = p.Wait()
}