network: lxc_delete_network_unpriv_exec()

thread-safety: s/exit()/_exit()/g Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 78070056
...@@ -2269,7 +2269,7 @@ static int lxc_delete_network_unpriv_exec(const char *lxcpath, const char *lxcna ...@@ -2269,7 +2269,7 @@ static int lxc_delete_network_unpriv_exec(const char *lxcpath, const char *lxcna
close(pipefd[1]); close(pipefd[1]);
if (ret < 0) { if (ret < 0) {
SYSERROR("Failed to duplicate std{err,out} file descriptor"); SYSERROR("Failed to duplicate std{err,out} file descriptor");
exit(EXIT_FAILURE); _exit(EXIT_FAILURE);
} }
if (netdev->priv.veth_attr.pair[0] != '\0') if (netdev->priv.veth_attr.pair[0] != '\0')
...@@ -2278,13 +2278,13 @@ static int lxc_delete_network_unpriv_exec(const char *lxcpath, const char *lxcna ...@@ -2278,13 +2278,13 @@ static int lxc_delete_network_unpriv_exec(const char *lxcpath, const char *lxcna
hostveth = netdev->priv.veth_attr.veth1; hostveth = netdev->priv.veth_attr.veth1;
if (hostveth[0] == '\0') { if (hostveth[0] == '\0') {
SYSERROR("Host side veth device name is missing"); SYSERROR("Host side veth device name is missing");
exit(EXIT_FAILURE); _exit(EXIT_FAILURE);
} }
if (netdev->link[0] == '\0') { if (netdev->link[0] == '\0') {
SYSERROR("Network link for network device \"%s\" is " SYSERROR("Network link for network device \"%s\" is "
"missing", netdev->priv.veth_attr.veth1); "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, INFO("Execing lxc-user-nic delete %s %s %s veth %s %s", lxcpath,
...@@ -2293,7 +2293,7 @@ static int lxc_delete_network_unpriv_exec(const char *lxcpath, const char *lxcna ...@@ -2293,7 +2293,7 @@ static int lxc_delete_network_unpriv_exec(const char *lxcpath, const char *lxcna
lxcname, netns_path, "veth", netdev->link, hostveth, lxcname, netns_path, "veth", netdev->link, hostveth,
(char *)NULL); (char *)NULL);
SYSERROR("Failed to exec lxc-user-nic."); SYSERROR("Failed to exec lxc-user-nic.");
exit(EXIT_FAILURE); _exit(EXIT_FAILURE);
} }
close(pipefd[1]); close(pipefd[1]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment