mirror of
https://github.com/rancher/os.git
synced 2025-09-01 14:48:55 +00:00
Close streams properly
This commit is contained in:
3
vendor/github.com/docker/containerd/subreaper/exec/wrapper.go
generated
vendored
3
vendor/github.com/docker/containerd/subreaper/exec/wrapper.go
generated
vendored
@@ -59,6 +59,9 @@ func (c *Cmd) Start() error {
|
||||
}
|
||||
|
||||
func (c *Cmd) Wait() error {
|
||||
// c.Cmd.Wait() will always error because there is no child process anymore
|
||||
// This is called to ensure that the streams are closed and cleaned up properly
|
||||
defer c.Cmd.Wait()
|
||||
if c.sub == nil {
|
||||
return c.err
|
||||
}
|
||||
|
Reference in New Issue
Block a user