Commit a7440c15 by Serge Hallyn

lxc_start: return 1 not -1 on error

So that exit status doesn't show up as 255. Reported-by: 's avatarAndrey Khozov <avkhozov@googlemail.com> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 2f2623ec
......@@ -201,7 +201,7 @@ Options :\n\
int main(int argc, char *argv[])
{
int err = -1;
int err = 1;
struct lxc_conf *conf;
char *const *args;
char *rcfile = NULL;
......@@ -328,7 +328,7 @@ int main(int argc, char *argv[])
if (my_args.close_all_fds)
c->want_close_all_fds(c, true);
err = c->start(c, 0, args) ? 0 : -1;
err = c->start(c, 0, args) ? 0 : 1;
out:
lxc_container_put(c);
return err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment