Unverified Commit b1eee4e4 by LiFeng Committed by Stéphane Graber

start: don't close inherited namespace fds

Otherwise we can never share namespaces. Signed-off-by: 's avatarLiFeng <lifeng68@huawei.com> Acked-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 9bd02221
...@@ -236,6 +236,15 @@ restart: ...@@ -236,6 +236,15 @@ restart:
(i < len_fds && fd == fds_to_ignore[i])) (i < len_fds && fd == fds_to_ignore[i]))
continue; continue;
if (conf) {
for (i = 0; i < LXC_NS_MAX; i++)
if (conf->inherit_ns_fd[i] == fd)
break;
if (i < LXC_NS_MAX)
continue;
}
if (current_config && fd == current_config->logfd) if (current_config && fd == current_config->logfd)
continue; continue;
......
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