Skip to content

libcontainer: fix file descriptor leaks (exec fifo and log file pair)#2794

Closed
cclerget wants to merge 1 commit intoopencontainers:masterfrom
cclerget:fd-leak-fix
Closed

libcontainer: fix file descriptor leaks (exec fifo and log file pair)#2794
cclerget wants to merge 1 commit intoopencontainers:masterfrom
cclerget:fd-leak-fix

Conversation

@cclerget
Copy link
Copy Markdown
Contributor

@cclerget cclerget commented Feb 5, 2021

When using the libcontainer package directly, an application can quickly raise the Too many open files error
due to some file descriptors left open, so far exec fifo and log file pair are not closed correctly.

Signed-off-by: Cédric Clerget cedric.clerget@gmail.com

When using the libcontainer package directly, an application can quickly raise the `Too many open files` error
due to some file descriptors left open, so far exec fifo and log file pair are not closed correctly.

Signed-off-by: Cédric Clerget <cedric.clerget@gmail.com>
@AkihiroSuda AkihiroSuda added this to the 1.0.0-rc94 milestone Feb 5, 2021
@kolyshkin
Copy link
Copy Markdown
Contributor

We need a unit test for this I think.

@kolyshkin
Copy link
Copy Markdown
Contributor

@cclerget sorry for hijacking this, but I was looking into how we'd better handle this closing, as well as if there are any other leaked fds, and ended up with #2802 -- can you please review that one?

@kolyshkin
Copy link
Copy Markdown
Contributor

Closing in favor of #2802

@kolyshkin kolyshkin closed this Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants