]> xenbits.xensource.com Git - libvirt.git/commitdiff
lxc: fix double close handshakefds[1]
authorLuyao Huang <lhuang@redhat.com>
Wed, 4 Feb 2015 13:32:52 +0000 (21:32 +0800)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 4 Feb 2015 14:42:43 +0000 (15:42 +0100)
Signed-off-by: Luyao Huang <lhuang@redhat.com>
src/lxc/lxc_process.c

index 01da344829031fed5a7ba967957c1179d03bc479..b3854233a8612468d87c2e404ff9f7a60d1d18b7 100644 (file)
@@ -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;