From 27d48db7e24b14c556569e0d46bbe97c2377ce72 Mon Sep 17 00:00:00 2001 From: David Kellum Date: Thu, 31 Mar 2016 16:18:54 -0700 Subject: [PATCH] LISTEN_FDS is just one env var so test with exact match --- lib/puma/binder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puma/binder.rb b/lib/puma/binder.rb index 2afc930c..d86113f6 100644 --- a/lib/puma/binder.rb +++ b/lib/puma/binder.rb @@ -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)