Fix process wait with monitor
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
90e4f130c8
commit
4641ab4101
2 changed files with 23 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue