1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

fix leak in the monitoring code

This commit is contained in:
Nicolas Viennot 2015-08-30 02:21:14 -04:00
parent 34e8b04695
commit c7c436eff1

View File

@ -27,7 +27,7 @@ loop do
Dir['/proc/*/cmdline'].map do |f| Dir['/proc/*/cmdline'].map do |f|
if File.open(f).read =~ /^tmate-slave \[(.+)\] \((.+)\) (.+)$/ if File.read(f) =~ /^tmate-slave \[(.+)\] \((.+)\) (.+)$/
token = $1 token = $1
role = $2 role = $2
ip = $3 ip = $3