virt-top: fix to explicitly disconnect from libvirtd rhel-8.8
authorYuya Higashi <higashi.yuya@fujitsu.com>
Tue, 15 Nov 2022 04:56:21 +0000 (13:56 +0900)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Nov 2022 08:15:08 +0000 (08:15 +0000)
commiteaf468caac06e4b43fafbacc6e70fa5f80ea3051
treee42cd55ad2c0e8724dc3d94a5516ca98206b2b9f
parent1b30bcd831a6e1c3dd16c0e53379df228da3e87b
virt-top: fix to explicitly disconnect from libvirtd

To prevent libvirtd from printing virNetSocketReadWire I/O errors when
the virt-top command exits, explicitly disconnect from libvirtd.

Signed-off-by: Yuya Higashi <higashi.yuya@fujitsu.com>
(cherry picked from commit 4b15ee2440b0e70e3c1eb5e164ded493e2d8f0c8)
src/top.ml