Merge pull request #2851 from lifubang/execdpatch
fixes: should no defer when detach
This commit is contained in:
commit
2175efcf99
@ -94,7 +94,10 @@ var execCommand = cli.Command{
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// if detach, we should not call this defer
|
||||
if !detach {
|
||||
defer process.Delete(ctx)
|
||||
}
|
||||
|
||||
statusC, err := process.Wait(ctx)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user