2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 04:59:37 +00:00

criu: criu_version_ok()

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:45 +01:00
parent 4f43526d74
commit 665bb114c4

View File

@@ -785,14 +785,14 @@ static bool criu_version_ok(char **version)
close(STDERR_FILENO);
if (dup2(pipes[1], STDOUT_FILENO) < 0)
exit(1);
_exit(EXIT_FAILURE);
path = on_path("criu", NULL);
if (!path)
exit(1);
_exit(EXIT_FAILURE);
execv(path, args);
exit(1);
_exit(EXIT_FAILURE);
} else {
FILE *f;
char *tmp;