go.d intelgpu: use cmd.Wait instead of process.Wait (#17384)
Ilya Mashchenko committed
Apr 11, 2024 at 16:08 UTC
7f1d8490fb847e9a9fd6939aec7a885c6373b832
1 file changed
+1
-1
src/go/collectors/go.d.plugin/modules/intelgpu/exec.go
+1
-1
@@ -135,7 +135,7 @@ func (e *intelGpuTopExec) stop() error {
135
}
136
137
_ = e.cmd.Process.Kill()
138
- _, _ = e.cmd.Process.Wait()
138
+ _ = e.cmd.Wait()
139
e.cmd = nil
140
141
select {