tools: exit success when lxc-execute is daemonized

The error_num value doesn't tell us anything since the container hasn't exited. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 1c60b12f
...@@ -171,7 +171,10 @@ int main(int argc, char *argv[]) ...@@ -171,7 +171,10 @@ int main(int argc, char *argv[])
c->daemonize = false; c->daemonize = false;
bret = c->start(c, 1, my_args.argv); bret = c->start(c, 1, my_args.argv);
ret = c->error_num; if (c->daemonize)
ret = EXIT_SUCCESS;
else
ret = c->error_num;
lxc_container_put(c); lxc_container_put(c);
if (!bret) { if (!bret) {
fprintf(stderr, "Failed run an application inside container\n"); fprintf(stderr, "Failed run an application inside container\n");
......
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