summaryrefslogtreecommitdiffstats
path: root/rescue/virt-rescue.c
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/virt-rescue.c')
-rw-r--r--rescue/virt-rescue.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/rescue/virt-rescue.c b/rescue/virt-rescue.c
index 911b80a1..dd033aa5 100644
--- a/rescue/virt-rescue.c
+++ b/rescue/virt-rescue.c
@@ -29,6 +29,7 @@
#include <assert.h>
#include <libintl.h>
+#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