Skip to content

Commit a04e94b

Browse files
authored
Merge pull request #8624 from davidhsingyuchen/backport-8334
2 parents deec965 + 99582fb commit a04e94b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

cio/io_unix.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,14 @@ func copyIO(fifos *FIFOSet, ioset *Streams) (*cio, error) {
9898
config: fifos.Config,
9999
wg: wg,
100100
closers: append(pipes.closers(), fifos),
101-
cancel: cancel,
101+
cancel: func() {
102+
cancel()
103+
for _, c := range pipes.closers() {
104+
if c != nil {
105+
c.Close()
106+
}
107+
}
108+
},
102109
}, nil
103110
}
104111

0 commit comments

Comments
 (0)