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

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

index 0f5b88d3b58422a68e157f512eadfbbac10844f2..cca7545f44de505d4d996fb76c634d6d3041879c 100644 (file)
@@ -2185,7 +2185,7 @@ static int lxc_delete_network_unpriv_exec(const char *lxcpath, const char *lxcna
                close(pipefd[1]);
                if (ret < 0) {
                        SYSERROR("Failed to duplicate std{err,out} file descriptor");
-                       exit(EXIT_FAILURE);
+                       _exit(EXIT_FAILURE);
                }
 
                if (netdev->priv.veth_attr.pair[0] != '\0')
@@ -2194,13 +2194,13 @@ static int lxc_delete_network_unpriv_exec(const char *lxcpath, const char *lxcna
                        hostveth = netdev->priv.veth_attr.veth1;
                if (hostveth[0] == '\0') {
                        SYSERROR("Host side veth device name is missing");
-                       exit(EXIT_FAILURE);
+                       _exit(EXIT_FAILURE);
                }
 
                if (netdev->link[0] == '\0') {
                        SYSERROR("Network link for network device \"%s\" is "
                                 "missing", netdev->priv.veth_attr.veth1);
-                       exit(EXIT_FAILURE);
+                       _exit(EXIT_FAILURE);
                }
 
                INFO("Execing lxc-user-nic delete %s %s %s veth %s %s", lxcpath,
@@ -2209,7 +2209,7 @@ static int lxc_delete_network_unpriv_exec(const char *lxcpath, const char *lxcna
                       lxcname, netns_path, "veth", netdev->link, hostveth,
                       (char *)NULL);
                SYSERROR("Failed to exec lxc-user-nic.");
-               exit(EXIT_FAILURE);
+               _exit(EXIT_FAILURE);
        }
 
        close(pipefd[1]);