Skip to content

Instantly share code, notes, and snippets.

@dqminh
Created April 21, 2015 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dqminh/c9e91cc40d99bdcb0bed to your computer and use it in GitHub Desktop.
Save dqminh/c9e91cc40d99bdcb0bed to your computer and use it in GitHub Desktop.
diff --git a/vendor/src/github.com/docker/libcontainer/process_linux.go b/vendor/src/github.com/docker/libcontainer/process_linux.go
index 1c74b65..fc9a733 100644
--- a/vendor/src/github.com/docker/libcontainer/process_linux.go
+++ b/vendor/src/github.com/docker/libcontainer/process_linux.go
@@ -127,12 +127,13 @@ func (p *setnsProcess) terminate() error {
}
func (p *setnsProcess) wait() (*os.ProcessState, error) {
- err := p.cmd.Wait()
- if err != nil {
- return p.cmd.ProcessState, err
- }
+ //err := p.cmd.Wait()
+ //if err != nil {
+ // return p.cmd.ProcessState, err
+ //}
- return p.cmd.ProcessState, nil
+ //return p.cmd.ProcessState, nil
+ return p.cmd.Process.Wait()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment