git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a97dd1d
)
appliance: Document pipe fds.
author
Richard W.M. Jones
<rjones@redhat.com>
Wed, 20 Jul 2011 11:05:40 +0000
(12:05 +0100)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/src/launch.c
b/src/launch.c
index
0b15ce9
..
a4dc98f
100644
(file)
--- 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;