Fix process wait with monitor

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2016-10-06 11:46:03 -07:00
parent 90e4f130c8
commit 4641ab4101
2 changed files with 23 additions and 3 deletions

View file

@ -200,9 +200,7 @@ func (p *process) FD() int {
}
func (p *process) Wait() (rst uint32, rerr error) {
if _, err := ioutil.ReadAll(p.exit); err != nil {
return 255, err
}
<-p.done
data, err := ioutil.ReadFile(filepath.Join(p.root, "exitStatus"))
defer func() {
if rerr != nil {