move work on execution service

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2016-12-05 14:15:03 -08:00
parent dd5f74edec
commit c857213b4c
15 changed files with 596 additions and 1016 deletions

View file

@ -3,9 +3,11 @@ package oci
import (
"os"
"syscall"
"github.com/docker/containerd/execution"
)
func newProcess(pid int) (*process, error) {
func newProcess(pid int) (execution.Process, error) {
proc, err := os.FindProcess(pid)
if err != nil {
return nil, err