It is done when creating the handle, so do it also when duplicating the
handle.
---
cat/tail.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/cat/tail.c b/cat/tail.c
index 51da5fc..ef5bbb1 100644
--- a/cat/tail.c
+++ b/cat/tail.c
@@ -495,7 +495,10 @@ reopen_handle (void)
guestfs_set_verbose (g2, guestfs_get_verbose (g));
guestfs_set_trace (g2, guestfs_get_trace (g));
- guestfs_set_pgroup (g2, guestfs_get_pgroup (g));
+ if (guestfs_set_pgroup (g2, guestfs_get_pgroup (g)) == -1) {
+ perror ("guestfs_set_pgroup");
+ return -1;
+ }
guestfs_close (g);
g = g2;
--
2.9.3