2
0
mirror of git://github.com/lxc/lxc synced 2025-09-01 13:31:38 +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. */ * LXC checking only for 'uffd' makes not much sense. */
args[3] = "uffd-noncoop"; args[3] = "uffd-noncoop";
else else
exit(1); _exit(EXIT_FAILURE);
null_stdfds(); null_stdfds();
execvp("criu", args); execvp("criu", args);
SYSERROR("Failed to exec \"criu\""); SYSERROR("Failed to exec \"criu\"");
exit(1); _exit(EXIT_FAILURE);
} }
ret = wait_for_pid(pid); ret = wait_for_pid(pid);