X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=rescue%2Fvirt-rescue.c;h=dd033aa5711e4b8389d8597e971ae259f1b739b2;hp=911b80a1f2b0da2fada8872890b3ed82beeef033;hb=9bab154d48e367702b65852c3c822341b474ffd2;hpb=6740028b333840eec5e8e46e8512f8155728b037 diff --git a/rescue/virt-rescue.c b/rescue/virt-rescue.c index 911b80a..dd033aa 100644 --- a/rescue/virt-rescue.c +++ b/rescue/virt-rescue.c @@ -29,6 +29,7 @@ #include #include +#include "ignore-value.h" #include "progname.h" #include "xvasprintf.h" @@ -289,7 +290,9 @@ main (int argc, char *argv[]) * appliance. */ guestfs_set_error_handler (g, NULL, NULL); - guestfs_launch (g); + + /* We expect launch to fail, so ignore the return value. */ + ignore_value (guestfs_launch (g)); /* launch() expects guestfsd to start. However, virt-rescue doesn't * run guestfsd, so this will always fail with ECHILD when the