Displaying 1 result from an estimated 1 matches for "58a0354".
Did you mean:
58035
2009 Aug 19
1
[PATCH] Correct checks for dup failure in guestfs_launch
...Richard Jones <rjones at trick.home.annexia.org>
Date: Wed, 19 Aug 2009 09:37:44 +0100
Subject: [PATCH] guestfs_launch: Correct checks for dup failure.
---
src/guestfs.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/guestfs.c b/src/guestfs.c
index 58a0354..04bd4e8 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -1165,16 +1165,16 @@ guestfs_launch (guestfs_h *g)
close (wfd[1]);
close (rfd[0]);
- int fail = 0;
- fail |= dup (wfd[0]);
- fail |= dup (rfd[1]);
- close (wfd[0]);
- close (rfd[1]);
-
- if (fail) {
+ if (du...