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