summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-07-20 12:05:40 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-07-20 12:05:40 +0100
commit70daccfe4e9939078436c2830928d8e53432dd84 (patch)
treed41fdc4cd8bb53845906fda93e88b3b22310b213 /src
parent5dec7842655dd872bb0fd9fe07f6a9eab6b13bfd (diff)
downloadlibguestfs-70daccfe4e9939078436c2830928d8e53432dd84.tar.gz
libguestfs-70daccfe4e9939078436c2830928d8e53432dd84.tar.xz
libguestfs-70daccfe4e9939078436c2830928d8e53432dd84.zip
appliance: Document pipe fds.
Diffstat (limited to 'src')
-rw-r--r--src/launch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/launch.c b/src/launch.c
index 1a47363d..a2a9beaa 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;