From 3c2f091728ac9c03945a6bfdc046c0eb3d9eb9b2 Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Sun, 9 Sep 2012 15:14:56 -0700 Subject: [PATCH] Use proper path for unix socket on inheritance --- lib/puma/binder.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/puma/binder.rb b/lib/puma/binder.rb index 311da53d..48e32dd2 100644 --- a/lib/puma/binder.rb +++ b/lib/puma/binder.rb @@ -75,12 +75,13 @@ module Puma @listeners << [str, io] when "unix" + path = "#{uri.host}#{uri.path}" + if fd = @inherited_fds.delete(str) logger.log "* Inherited #{str}" - io = inherit_unix_listener uri.path, fd + io = inherit_unix_listener path, fd else logger.log "* Listening on #{str}" - path = "#{uri.host}#{uri.path}" umask = nil