From: Daniel P. Berrange Date: Fri, 11 Oct 2013 16:28:31 +0000 (+0100) Subject: Fix exit status of lxc controller X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=13c011c3373ec4edaee188d749d032102503c9ea;p=libvirt.git Fix exit status of lxc controller The LXC controller main() method initialized 'rc' to 1 rather than '-1'. In the cleanup path it will print any error to stderr, if-and-only-if rc < 0. Hence the incorrect initialization caused errors to be lost. Signed-off-by: Daniel P. Berrange --- diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c index b881f172de..1c6aed62d3 100644 --- a/src/lxc/lxc_controller.c +++ b/src/lxc/lxc_controller.c @@ -2230,7 +2230,7 @@ cleanup: int main(int argc, char *argv[]) { pid_t pid; - int rc = 1; + int rc = -1; char *name = NULL; size_t nveths = 0; char **veths = NULL;