diff options
Diffstat (limited to 'examples/copy_over.c')
-rw-r--r-- | examples/copy_over.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/copy_over.c b/examples/copy_over.c index 9cff00bc..45b8fa6d 100644 --- a/examples/copy_over.c +++ b/examples/copy_over.c @@ -145,7 +145,7 @@ main (int argc, char *argv[]) } /* Clean up. */ - if (guestfs_umount_all (destg) == -1) + if (guestfs_shutdown (destg) == -1) exit (EXIT_FAILURE); guestfs_close (destg); @@ -193,10 +193,6 @@ start_srcthread (void *arg) } /* Clean up. */ - if (guestfs_umount_all (srcg) == -1) { - pthread_cancel (threaddata->mainthread); - exit (EXIT_FAILURE); - } guestfs_close (srcg); return NULL; |