Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 335688f

Browse files
committed
exec: fix the issue of waitexec process
Signed-off-by: fupan <[email protected]>
1 parent efce5ff commit 335688f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daemon/pod/exec.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func (p *XPod) StartExec(stdin io.ReadCloser, stdout io.WriteCloser, containerId
148148

149149
go func(es *Exec) {
150150
ret, err := p.sandbox.WaitProcess(containerId, es.Id)
151-
if err == nil {
151+
if err != nil {
152152
es.Log(ERROR, "can not wait exec")
153153
return
154154
}

0 commit comments

Comments
 (0)