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

Follow local conventions better

This commit is contained in:
David Kellum 2016-03-31 16:42:51 -07:00
parent 27d48db7e2
commit ca618b1b12

View file

@ -55,8 +55,7 @@ module Puma
fd, url = v.split(":", 2)
@inherited_fds[url] = fd.to_i
remove << k
end
if k == 'LISTEN_FDS' && ENV['LISTEN_PID'].to_i == $$
elsif k == 'LISTEN_FDS' && ENV['LISTEN_PID'].to_i == $$
v.to_i.times do |num|
fd = num + 3
sock = TCPServer.for_fd(fd)
@ -72,8 +71,7 @@ module Puma
@inherited_fds[url] = sock
@events.debug "Registered #{url} for inheriting from LISTEN_FDS"
end
ENV.delete k
ENV.delete 'LISTEN_PID'
remove << k << 'LISTEN_PID'
end
end