Merge pull request #283 from coolljt0725/fix_attach
Fix attach to old running container after restart
This commit is contained in:
commit
c26f5ef94b
1 changed files with 7 additions and 0 deletions
|
@ -132,6 +132,13 @@ func loadProcess(root, id string, c *container, s *ProcessState) (*process, erro
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
p.exitPipe = exit
|
p.exitPipe = exit
|
||||||
|
|
||||||
|
control, err := getControlPipe(filepath.Join(root, ControlFile))
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
p.controlPipe = control
|
||||||
|
|
||||||
return p, nil
|
return p, nil
|
||||||
}
|
}
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in a new issue