Skip to content

Commit

Permalink
Make error channel buffered
Browse files Browse the repository at this point in the history
as per suggestion in PR comments

Signed-off-by: Kieron Browne <kbrowne@vmware.com>
  • Loading branch information
Kieron Browne committed Mar 27, 2021
1 parent 6a8715e commit 700febc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcontainer/seccomp/patchbpf/enosys_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func disassembleFilter(filter *libseccomp.ScmpFilter) ([]bpf.Instruction, error)
defer rdr.Close()

readerBuffer := new(bytes.Buffer)
errChan := make(chan error)
errChan := make(chan error, 1)
go func() {
_, err := io.Copy(readerBuffer, rdr)
errChan <- err
Expand Down

0 comments on commit 700febc

Please sign in to comment.