Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip LXC hidden dir in /dev when looking for TTYs #28

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

ahktenzero
Copy link

In LXC containers, /dev/.lxc contains subdirs for the sys and proc fs to be mounted into the container. These files are not readable directly, Proc::ProcessTable::_get_tty_list attempts to stat the files in these directories which results in a lot of warnings. There aren't going to be any TTY device files there so you can skip the whole dir.

For an example of this causing issues, see liske/needrestart#170 .

In LXC containers, /dev/.lxc contains subdirs for the sys and proc fs to be
mounted into the container. These files are not readable directly,
Proc::ProcessTable::_get_tty_list attempts to stat the files in these
directories which results in a lot of warnings. There aren't going to be any TTY
device files there so skip the whole dir.
@jwbargsten
Copy link
Owner

awesome!

@jwbargsten jwbargsten merged commit 5f4b4a8 into jwbargsten:master Jul 8, 2020
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.

2 participants