storage/pkg/tarlog
Giuseppe Scrivano d65c99c149
tarlogger: drop state mutex
detect when the read pipe got closed by using the Write error code.

It solves a race, where the pipe could be closed between the check and
the actual write.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-12-07 10:55:07 +01:00
..
tarlogger.go tarlogger: drop state mutex 2019-12-07 10:55:07 +01:00
tarlogger_test.go pkg/tarlog: use io.Pipe() 2019-08-05 10:37:41 +02:00