summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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;