diff options
Diffstat (limited to 'examples/mount_local.c')
-rw-r--r-- | examples/mount_local.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/mount_local.c b/examples/mount_local.c index 240e31f3..5c24cd19 100644 --- a/examples/mount_local.c +++ b/examples/mount_local.c @@ -186,8 +186,8 @@ main (int argc, char *argv[]) waitpid (pid, NULL, 0); - /* Unmount and close. */ - if (guestfs_umount (g, "/") == -1) + /* Shutdown the handle explicitly so write errors can be detected. */ + if (guestfs_shutdown (g) == -1) exit (EXIT_FAILURE); guestfs_close (g); |