criu: do_restore()

thread-safety: s/exit()/_exit()/g Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent a7d1eef7
......@@ -823,8 +823,9 @@ out_unlock:
return !has_error;
}
// do_restore never returns, the calling process is used as the
// monitor process. do_restore calls exit() if it fails.
/* do_restore never returns, the calling process is used as the monitor process.
* do_restore calls _exit() if it fails.
*/
static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_opts *opts, char *criu_version)
{
int fd, ret;
......@@ -1040,7 +1041,7 @@ static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_
if (ret)
lxc_abort(c->name, handler);
lxc_fini(c->name, handler);
exit(ret);
_exit(ret);
}
out_fini_handler:
......@@ -1065,7 +1066,7 @@ out:
close(status_pipe);
}
exit(1);
_exit(EXIT_FAILURE);
}
static int save_tty_major_minor(char *directory, struct lxc_container *c, char *tty_id, int len)
......
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