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:
parent
34e8b04695
commit
c7c436eff1
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user