Merge pull request #3050 from jterry75/fix_cpu_cap

Fix a bug in shim log on Windows that can cause 100% CPU utilization
This commit is contained in:
Derek McGowan 2019-02-27 17:32:38 -08:00 committed by GitHub
commit c24a74354c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ func openShimLog(ctx context.Context, bundle *Bundle) (io.ReadCloser, error) {
time.Second*10, time.Second*10,
) )
if conerr != nil { if conerr != nil {
dpc.conerr = errors.Wrap(err, "failed to connect to shim log") dpc.conerr = errors.Wrap(conerr, "failed to connect to shim log")
} }
dpc.c = c dpc.c = c
dpc.wg.Done() dpc.wg.Done()