提交 13c011c3 编写于 作者: D Daniel P. Berrange

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: NDaniel P. Berrange <berrange@redhat.com>
上级 5787f0b9
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册