Commit bb406ee
committed
fix: pkg/hwapi: close fd on each iteration in ReadMSR
Since the contents of MSRs is stored in ret anyways, we can make a syscall
to close a MSRs' fd, otherwise we are likely to hit the limit of open files
per process (i.e. 'ReadMSR - gomsr.MSR context aborted with: too many open
files').
Signed-off-by: Michal Gorlas <michal.gorlas@9elements.com>1 parent df32f36 commit bb406ee
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments