Unverified Commit 37d5831e by Christian Brauner Committed by Stéphane Graber

start: close data socket in parent

Brings the number of open fds in the monitor process for a standard container without ttys down to 17. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 7a687c31
......@@ -1149,6 +1149,11 @@ int __lxc_start(const char *name, struct lxc_conf *conf,
ERROR("failed to spawn '%s'", name);
goto out_fini_nonet;
}
/* close parent side of data socket */
close(handler->data_sock[0]);
handler->data_sock[0] = -1;
close(handler->data_sock[1]);
handler->data_sock[1] = -1;
handler->conf->reboot = 0;
......
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