1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

builder: notify output buffering on body close

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi 2018-05-25 14:58:55 -07:00
parent 2567dd9afc
commit 1a6262e9ef

View file

@ -345,6 +345,11 @@ func (r *rcNotifier) Read(b []byte) (int, error) {
return n, err
}
func (r *rcNotifier) Close() error {
r.notify()
return r.Closer.Close()
}
type wcf struct {
writeCloseFlusher
mu sync.Mutex