lxc: fix double close handshakefds[1]

Signed-off-by: Luyao Huang <lhuang@redhat.com>
This commit is contained in:
Luyao Huang 2015-02-04 21:32:52 +08:00 committed by Martin Kletzander
parent 5a1998d3c4
commit 4cef725782

View 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;