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 28d9e29e
......@@ -1479,6 +1479,11 @@ int __lxc_start(const char *name, struct lxc_handler *handler,
ERROR("Failed to spawn container \"%s\".", name);
goto out_detach_blockdev;
}
/* 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