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

Use proper path for unix socket on inheritance

This commit is contained in:
Evan Phoenix 2012-09-09 15:14:56 -07:00
parent 187c6f8360
commit 3c2f091728

View file

@ -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