From: Richard W.M. Jones Date: Wed, 20 Jul 2011 11:05:40 +0000 (+0100) Subject: appliance: Document pipe fds. X-Git-Tag: 1.12.0~8 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=70daccfe4e9939078436c2830928d8e53432dd84;p=libguestfs.git appliance: Document pipe fds. --- 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;