Make the server process a reaper

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2016-08-15 15:57:41 -07:00
parent 01e9ac5313
commit b01d9dcc10

View file

@ -28,6 +28,8 @@ func New(runtimePath, sandboxDir, containerDir string) (*Server, error) {
return nil, fmt.Errorf("failed to set server as subreaper: %v", err)
}
utils.StartReaper()
if err := os.MkdirAll(imageStore, 0755); err != nil {
return nil, err
}