]> git.proxmox.com Git - mirror_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>
Sat, 24 Feb 2018 20:37:56 +0000 (21:37 +0100)
thread-safety: s/exit()/_exit()/g

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

index 98b4655cfaccdd31d48bcbed46c23fdf0a87cf26..f8d6a3fe1a24de8bd34f71e4428d4f34aa60a31e 100644 (file)
@@ -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 */