From 70daccfe4e9939078436c2830928d8e53432dd84 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. --- src/launch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/launch.c b/src/launch.c index 1a47363..a2a9bea 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