2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 08:19:32 +00:00

criu: __criu_check_feature()

thread-safety: s/exit()/_exit()/g

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner
2018-02-24 20:11:04 +01:00
parent dfa7eaeb21
commit 4f43526d74

View File

@@ -717,13 +717,13 @@ bool __criu_check_feature(uint64_t *features_to_check)
* LXC checking only for 'uffd' makes not much sense. */
args[3] = "uffd-noncoop";
else
exit(1);
_exit(EXIT_FAILURE);
null_stdfds();
execvp("criu", args);
SYSERROR("Failed to exec \"criu\"");
exit(1);
_exit(EXIT_FAILURE);
}
ret = wait_for_pid(pid);