From d8b3f9c34acd17c7fb9e5325845e01a6502bd138 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 23 Feb 2018 14:31:12 +0100 Subject: [PATCH] utils: run_command() thread-safety: s/exit()/_exit()/g Signed-off-by: Christian Brauner --- src/lxc/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/utils.c b/src/lxc/utils.c index 98b4655cf..f8d6a3fe1 100644 --- a/src/lxc/utils.c +++ b/src/lxc/utils.c @@ -2242,13 +2242,13 @@ int run_command(char *buf, size_t buf_size, int (*child_fn)(void *), void *args) if (ret < 0) { SYSERROR("failed to duplicate std{err,out} file descriptor"); - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } /* Does not return. */ child_fn(args); ERROR("failed to exec command"); - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } /* close the write-end of the pipe */