So that exit status doesn't show up as 255.
Reported-by: Andrey Khozov <avkhozov@googlemail.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
int main(int argc, char *argv[])
{
- int err = -1;
+ int err = 1;
struct lxc_conf *conf;
char *const *args;
char *rcfile = NULL;
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;