summaryrefslogtreecommitdiffstats
path: root/fish/reopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'fish/reopen.c')
-rw-r--r--fish/reopen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fish/reopen.c b/fish/reopen.c
index 585bbd23..602ff02a 100644
--- a/fish/reopen.c
+++ b/fish/reopen.c
@@ -39,6 +39,9 @@ run_reopen (const char *cmd, size_t argc, char *argv[])
return -1;
}
+ if (guestfs_shutdown (g) == -1)
+ return -1;
+
/* Open the new handle first, so we can copy the settings from the
* old one to the new one, and also so if it fails we still have an
* open handle.