fix instructions in README

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Qiang Huang 2015-02-26 15:02:31 +08:00
parent 9d91f080ce
commit 20af7e70e2
1 changed files with 5 additions and 3 deletions

View File

@ -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()