Skip to content

Commit

Permalink
criu: du_dump()
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 Aug 23, 2018
1 parent 28eafc4 commit 3a2b6ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lxc/criu.c
Expand Up @@ -1157,7 +1157,7 @@ static bool do_dump(struct lxc_container *c, char *mode, struct migrate_opts *op
h.name = c->name;
if (!cgroup_init(&h)) {
ERROR("failed to cgroup_init()");
exit(1);
_exit(EXIT_FAILURE);
}

os.pipefd = criuout[1];
Expand All @@ -1170,13 +1170,13 @@ static bool do_dump(struct lxc_container *c, char *mode, struct migrate_opts *op
ret = save_tty_major_minor(opts->directory, c, os.tty_id, sizeof(os.tty_id));
if (ret < 0) {
free(criu_version);
exit(EXIT_FAILURE);
_exit(EXIT_FAILURE);
}

/* exec_criu() returning is an error */
exec_criu(&os);
free(criu_version);
exit(EXIT_FAILURE);
_exit(EXIT_FAILURE);
} else {
int status;
ssize_t n;
Expand Down

0 comments on commit 3a2b6ca

Please sign in to comment.