[Libguestfs] [PATCH] Fix the default value of "pgroup".

Qixiang Wan qwan at redhat.com
Thu Mar 8 07:21:49 UTC 2012


As the document said, the default value of "pgroup" should be false.

Signed-off-by: Qixiang Wan <qwan at redhat.com>
---
 fish/fish.c   |    2 +-
 src/guestfs.c |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/fish/fish.c b/fish/fish.c
index 575fe99..fbacbb9 100644
--- a/fish/fish.c
+++ b/fish/fish.c
@@ -406,7 +406,7 @@ main (int argc, char *argv[])
     sigaction (SIGINT, &sa, NULL);
     sigaction (SIGQUIT, &sa, NULL);
 
-    guestfs_set_pgroup (g, 1);
+    guestfs_set_pgroup (g, 0);
   }
 
   /* Old-style -i syntax?  Since -a/-d/-N and -i was disallowed
diff --git a/src/guestfs.c b/src/guestfs.c
index 3493d79..2ff506b 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -143,6 +143,9 @@ guestfs_create (void)
    */
   g->msg_next_serial = 0x00123400;
 
+  /* Default is 'false' to allow users to interrupt the subprocess. */
+  g->pgroup = 0;
+
   /* Default is uniprocessor appliance. */
   g->smp = 1;
 
-- 
1.7.7.6




More information about the Libguestfs mailing list