Skip to content

Commit 5c0af14

Browse files
teddykingCraig Furman
authored andcommitted
Return from goroutine when it should terminate
Signed-off-by: Craig Furman <[email protected]>
1 parent 8d3e6c9 commit 5c0af14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libcontainer/container_linux.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ func awaitFifoOpen(path string) <-chan openResult {
323323
f, err := os.OpenFile(path, os.O_RDONLY, 0)
324324
if err != nil {
325325
fifoOpened <- openResult{err: newSystemErrorWithCause(err, "open exec fifo for reading")}
326+
return
326327
}
327328
fifoOpened <- openResult{file: f}
328329
}()

0 commit comments

Comments
 (0)