Skip to content

Commit

Permalink
Rev::UNIXServer: use path instead of the first argument
Browse files Browse the repository at this point in the history
I'm fairly certain the +path+ argument was intended to be used
for binding the UNIXServer.  I don't think this was used by
anything before (and not in any specs) so the bug got hit.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
  • Loading branch information
Eric Wong committed Aug 27, 2009
1 parent fb6e808 commit fe82157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rev/server.rb
Expand Up @@ -53,7 +53,7 @@ def initialize(host, port, klass = TCPSocket, *args, &block)
# creates new connection objects of the given class.
class UNIXServer < Server
def initialize(path, klass = UNIXSocket, *args, &block)
super(::UNIXServer.new(*args), klass, *args, &block)
super(::UNIXServer.new(path), klass, *args, &block)
end
end
end

0 comments on commit fe82157

Please sign in to comment.