fix: logging in intel_rdt.go caused service stop timeout even as root (#9844) (#9850)

This commit is contained in:
Guo Qiao (Joe) 2021-10-05 05:04:30 +13:00 committed by GitHub
parent 021dedb792
commit 6c1bdfad76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -278,12 +278,12 @@ func (r *IntelRDT) readData(ctx context.Context, args []string, processesPIDsAss
}()
err = cmd.Start()
if err != nil {
r.errorChan <- fmt.Errorf("pqos: %v", err)
r.Log.Errorf("pqos: %v", err)
return
}
err = cmd.Wait()
if err != nil {
r.errorChan <- fmt.Errorf("pqos: %v", err)
r.Log.Errorf("pqos: %v", err)
}
}