Skip to content

Commit

Permalink
Merge pull request #28 from ahktenzero/master
Browse files Browse the repository at this point in the history
Skip LXC hidden dir in /dev when looking for TTYs
  • Loading branch information
jwbargsten authored Jul 8, 2020
2 parents b760834 + 9241e70 commit 5f4b4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Proc/ProcessTable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ sub _get_tty_list
return unless -d "/dev";
find({ wanted =>
sub{
$File::Find::prune = 1 if -d $_ && ! -x $_;
$File::Find::prune = 1 if -d $_ && ( ! -x $_ || $_ eq "/dev/.lxc");
my($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
$atime,$mtime,$ctime,$blksize,$blocks) = stat($File::Find::name);
$Proc::ProcessTable::TTYDEVS{$rdev} = $File::Find::name
Expand Down

0 comments on commit 5f4b4a8

Please sign in to comment.