[libvirt] [PATCH] lxc: fix double close handshakefds[1]

Luyao Huang lhuang at redhat.com
Wed Feb 4 13:32:52 UTC 2015


Signed-off-by: Luyao Huang <lhuang at redhat.com>
---
 src/lxc/lxc_process.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c
index 01da344..b385423 100644
--- a/src/lxc/lxc_process.c
+++ b/src/lxc/lxc_process.c
@@ -1270,11 +1270,6 @@ int virLXCProcessStart(virConnectPtr conn,
         goto error;
     }
 
-    if (VIR_CLOSE(handshakefds[1]) < 0) {
-        virReportSystemError(errno, "%s", _("could not close handshake fd"));
-        goto error;
-    }
-
     if (virCommandHandshakeWait(cmd) < 0)
         goto error;
 
-- 
1.8.3.1




More information about the libvir-list mailing list