Merge pull request #283 from coolljt0725/fix_attach

Fix attach to old running container after restart
This commit is contained in:
Kenfe-Mickaël Laventure 2016-07-05 10:11:45 -07:00 committed by GitHub
commit c26f5ef94b

View file

@ -132,6 +132,13 @@ func loadProcess(root, id string, c *container, s *ProcessState) (*process, erro
return nil, err
}
p.exitPipe = exit
control, err := getControlPipe(filepath.Join(root, ControlFile))
if err != nil {
return nil, err
}
p.controlPipe = control
return p, nil
}
return nil, err