Merge pull request #410 from hqhq/fix_README

fix instructions in README
This commit is contained in:
Victor Marmol 2015-02-26 09:12:26 -08:00
commit b48acf4613
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()