criu: criu_version_ok()

thread-safety: s/exit()/_exit()/g Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 4f43526d
......@@ -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;
......
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