mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
libguestfs adds an atexit handler to clean up handles on exit. This is convenient in single-threaded programs, but causes problems in multithreaded programs, for example: https://bugzilla.redhat.com/show_bug.cgi?id=1043520 Disable the atexit handler for all guestfs handles created by virt-manager. Note this change requires libguestfs >= 1.20. However the change to config.py should ensure that if an earlier version of libguestfs is installed it should silently fall back to not using inspection.