[exec] Replace syscall with /x/sys/unix

This replaces the syscall usage with sys/unix in the execution code

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-04-10 11:56:33 -07:00
parent 4f33aa2b5c
commit 4f7d521510
6 changed files with 43 additions and 37 deletions

View File

@@ -12,6 +12,8 @@ import (
"sync"
"syscall"
"golang.org/x/sys/unix"
shimapi "github.com/containerd/containerd/api/services/shim"
"github.com/crosbymichael/console"
runc "github.com/crosbymichael/go-runc"
@@ -145,7 +147,7 @@ func (e *execProcess) Resize(ws console.WinSize) error {
}
func (e *execProcess) Signal(sig int) error {
return syscall.Kill(e.pid, syscall.Signal(sig))
return unix.Kill(e.pid, syscall.Signal(sig))
}
func (e *execProcess) Stdin() io.Closer {