]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
utils: run_command()
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 23 Feb 2018 13:31:12 +0000 (14:31 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 23 Aug 2018 20:21:24 +0000 (22:21 +0200)
thread-safety: s/exit()/_exit()/g

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

index 6043701151619128321061c47db90878db23ce37..757579f9b7f5d547e45fda0e37f1fd37048f440c 100644 (file)
@@ -2198,13 +2198,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 */