From 20af7e70e2511b4da0e035bf2fa2d6295f198970 Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Thu, 26 Feb 2015 15:02:31 +0800 Subject: [PATCH] fix instructions in README Signed-off-by: Qiang Huang --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c5d2000a..984f2c52 100644 --- a/README.md +++ b/README.md @@ -101,14 +101,16 @@ process := &libcontainer.Process{ Stderr: os.Stderr, } -pid, err := container.Start(process) +err := container.Start(process) if err != nil { log.Fatal(err) } - // wait for the process to finish. -wait(pid) +status, err := process.Wait() +if err != nil { + log.Fatal(err) +} // destroy the container. container.Destroy()