1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

LISTEN_FDS is just one env var so test with exact match

This commit is contained in:
David Kellum 2016-03-31 16:18:54 -07:00
parent 42143023b9
commit 27d48db7e2

View file

@ -56,7 +56,7 @@ module Puma
@inherited_fds[url] = fd.to_i
remove << k
end
if k =~ /LISTEN_FDS/ && ENV['LISTEN_PID'].to_i == $$
if k == 'LISTEN_FDS' && ENV['LISTEN_PID'].to_i == $$
v.to_i.times do |num|
fd = num + 3
sock = TCPServer.for_fd(fd)