aboutsummaryrefslogtreecommitdiff
path: root/python/qemu/machine/console_socket.py
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2023-09-28 00:49:39 -0400
committerJohn Snow <jsnow@redhat.com>2023-10-11 16:02:02 -0400
commit612b3ba218092825467810b1a38de2026dac2bfc (patch)
tree9c87b952eb356c744940d6f10c06ccbe94bcfc35 /python/qemu/machine/console_socket.py
parent91e11db7bcc486db2dc2bdab94ac5de62c02ce9a (diff)
downloadqemu-612b3ba218092825467810b1a38de2026dac2bfc.zip
qemu-612b3ba218092825467810b1a38de2026dac2bfc.tar.gz
qemu-612b3ba218092825467810b1a38de2026dac2bfc.tar.bz2
python/machine: close sock_pair in cleanup path
If everything has gone smoothly, we'll already have closed the socket we gave to the child during post_launch. The other half of the pair that we gave to the QMP connection should, likewise, be definitively closed by now. However, in the cleanup path, it's possible we've created the socketpair but flubbed the launch and need to clean up resources. These resources *would* be handled by the garbage collector, but that can happen at unpredictable times. Nicer to just clean them up synchronously on the exit path, here. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Ani Sinha <anisinha@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-id: 20230928044943.849073-3-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'python/qemu/machine/console_socket.py')
0 files changed, 0 insertions, 0 deletions