From a21dff8faad086cce7c1a87cfa755a2e4f8eec8e 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 40a58e0..58fb0d1 100644 --- a/src/launch.c +++ b/src/launch.c @@ -608,11 +608,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