appliance: Document pipe fds.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 20 Jul 2011 11:05:40 +0000 (12:05 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 27 Jul 2011 14:03:50 +0000 (15:03 +0100)
(cherry picked from commit 70daccfe4e9939078436c2830928d8e53432dd84)

src/launch.c

index 0b15ce9..a4dc98f 100644 (file)
@@ -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;