From 1700f8fc7482bd73efd37709d301d76f610720fb Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 20 Jul 2011 12:05:40 +0100 Subject: [PATCH] appliance: Document pipe fds. (cherry picked from commit 70daccfe4e9939078436c2830928d8e53432dd84) --- src/launch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/launch.c b/src/launch.c index 0b15ce9..a4dc98f 100644 --- a/src/launch.c +++ b/src/launch.c @@ -631,11 +631,13 @@ launch_appliance (guestfs_h *g) close (wfd[1]); close (rfd[0]); + /* Stdin. */ if (dup (wfd[0]) == -1) { dup_failed: perror ("dup failed"); _exit (EXIT_FAILURE); } + /* Stdout. */ if (dup (rfd[1]) == -1) goto dup_failed; -- 1.8.3.1