daemon: When running commands, restart select if we receive a signal.
[libguestfs.git] / cat / virt-ls.c
index 64bae46..e2700d2 100644 (file)
@@ -24,6 +24,7 @@
 #include <unistd.h>
 #include <getopt.h>
 #include <fcntl.h>
+#include <locale.h>
 #include <assert.h>
 
 #include "progname.h"
@@ -35,6 +36,7 @@
 guestfs_h *g;
 
 int read_only = 1;
+int live = 0;
 int verbose = 0;
 int keys_from_stdin = 0;
 int echo_keys = 0;
@@ -227,6 +229,7 @@ main (int argc, char *argv[])
    */
   assert (read_only == 1);
   assert (inspector == 1);
+  assert (live == 0);
 
   /* User must specify at least one directory name on the command line. */
   if (optind >= argc || argc - optind < 1)