From: Christian Brauner Date: Sat, 24 Feb 2018 19:11:04 +0000 (+0100) Subject: criu: __criu_check_feature() X-Git-Tag: lxc-3.0.0.beta1~15^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f43526d7465f14faf7ad6db0240810fc4f2649a;p=thirdparty%2Flxc.git criu: __criu_check_feature() thread-safety: s/exit()/_exit()/g Signed-off-by: Christian Brauner --- diff --git a/src/lxc/criu.c b/src/lxc/criu.c index a76834f9f..7105d8e4f 100644 --- a/src/lxc/criu.c +++ b/src/lxc/criu.c @@ -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);