Future commits will want to reuse the handshakeFd and thus it
mustn't be closed in virLXCControllerDaemonHandshake(). Do the
closing explicitly afterwards.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
_("error sending continue signal to daemon"));
return -1;
}
- VIR_FORCE_CLOSE(ctrl->handshakeFd);
return 0;
}
if (virLXCControllerDaemonHandshake(ctrl) < 0)
goto cleanup;
+ /* and preemptively close handshakeFd */
+ VIR_FORCE_CLOSE(ctrl->handshakeFd);
+
/* We must not hold open a dbus connection for life
* of LXC instance, since dbus-daemon is limited to
* only a few 100 connections by default