Return from goroutine when it should terminate
Signed-off-by: Craig Furman <cfurman@pivotal.io>
This commit is contained in:
parent
8d3e6c9826
commit
5c0af14bf8
|
@ -323,6 +323,7 @@ func awaitFifoOpen(path string) <-chan openResult {
|
|||
f, err := os.OpenFile(path, os.O_RDONLY, 0)
|
||||
if err != nil {
|
||||
fifoOpened <- openResult{err: newSystemErrorWithCause(err, "open exec fifo for reading")}
|
||||
return
|
||||
}
|
||||
fifoOpened <- openResult{file: f}
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue