Skip to content

Commit

Permalink
lxccontainer: do_lxcapi_clone()
Browse files Browse the repository at this point in the history
thread-safety: s/exit()/_exit()/g

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 24, 2018
1 parent fe1ce58 commit d8480a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lxc/lxccontainer.c
Expand Up @@ -3689,10 +3689,10 @@ static struct lxc_container *do_lxcapi_clone(struct lxc_container *c, const char
else
ret = clone_update_rootfs(&data);
if (ret < 0)
exit(1);
_exit(EXIT_FAILURE);

container_mem_unlock(c);
exit(0);
_exit(EXIT_SUCCESS);

out:
container_mem_unlock(c);
Expand Down

0 comments on commit d8480a3

Please sign in to comment.