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

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

index 7b82e9d564df482abcd6bab020a649a0c50c9598..d3bf0874b3a564e5d502283704b1291413afd1c4 100644 (file)
@@ -4160,13 +4160,13 @@ static bool do_lxcapi_detach_interface(struct lxc_container *c,
                init_pid = do_lxcapi_init_pid(c);
                if (!switch_to_ns(init_pid, "net")) {
                        ERROR("Failed to enter network namespace");
-                       exit(EXIT_FAILURE);
+                       _exit(EXIT_FAILURE);
                }
 
                ret = lxc_netdev_isup(ifname);
                if (ret < 0) {
                        ERROR("Failed to determine whether network device \"%s\" is up", ifname);
-                       exit(EXIT_FAILURE);
+                       _exit(EXIT_FAILURE);
                }
 
                /* netdev of ifname is up. */
@@ -4174,7 +4174,7 @@ static bool do_lxcapi_detach_interface(struct lxc_container *c,
                        ret = lxc_netdev_down(ifname);
                        if (ret) {
                                ERROR("Failed to set network device \"%s\" down", ifname);
-                               exit(EXIT_FAILURE);
+                               _exit(EXIT_FAILURE);
                        }
                }
 
@@ -4185,10 +4185,10 @@ static bool do_lxcapi_detach_interface(struct lxc_container *c,
                                ERROR("Network device \"%s\" not found", ifname);
                        else
                                ERROR("Failed to remove network device \"%s\"", ifname);
-                       exit(EXIT_FAILURE);
+                       _exit(EXIT_FAILURE);
                }
 
-               exit(EXIT_SUCCESS);
+               _exit(EXIT_SUCCESS);
        }
 
        ret = wait_for_pid(pid);