Refactor shim terminal and io handling

This also finishes the service implementation of the shim behind GRPC

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2017-01-23 16:18:10 -08:00
parent 6e9e0a895a
commit d5d2e586cd
12 changed files with 547 additions and 630 deletions

View file

@ -52,7 +52,9 @@ func main() {
}
var (
server = grpc.NewServer()
sv = &service{}
sv = &service{
processes: make(map[int]process),
}
)
shim.RegisterShimServiceServer(server, sv)
l, err := utils.CreateUnixSocket("shim.sock")