mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-08 13:24:23 +00:00
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: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
19bfbf6e94
commit
6c84b5994a
@ -191,6 +191,9 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
c->daemonize = my_args.daemonize == 1;
|
c->daemonize = my_args.daemonize == 1;
|
||||||
bret = c->start(c, 1, my_args.argv);
|
bret = c->start(c, 1, my_args.argv);
|
||||||
|
if (c->daemonize)
|
||||||
|
ret = EXIT_SUCCESS;
|
||||||
|
else
|
||||||
ret = c->error_num;
|
ret = c->error_num;
|
||||||
lxc_container_put(c);
|
lxc_container_put(c);
|
||||||
if (!bret) {
|
if (!bret) {
|
||||||
|
Loading…
Reference in New Issue
Block a user