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:
parent
42143023b9
commit
27d48db7e2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue