]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
criu: __criu_check_feature()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 24 Feb 2018 19:11:04 +0000 (20:11 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 24 Feb 2018 20:38:39 +0000 (21:38 +0100)
thread-safety: s/exit()/_exit()/g

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/criu.c

index a76834f9fb2c4949f3a4554ccf29474ffae248e6..7105d8e4f486eb87856bce55d7e19ec486040579 100644 (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);