summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/launch-libvirt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c
index 37c1af47..04431641 100644
--- a/src/launch-libvirt.c
+++ b/src/launch-libvirt.c
@@ -1150,8 +1150,7 @@ shutdown_libvirt (guestfs_h *g)
*/
if (dom != NULL) {
- /* XXX Need to be graceful? */
- if (virDomainDestroyFlags (dom, 0) == -1) {
+ if (virDomainDestroyFlags (dom, VIR_DOMAIN_DESTROY_GRACEFUL) == -1) {
libvirt_error (g, _("could not destroy libvirt domain"));
ret = -1;
}