Skip to content

Commit

Permalink
Fix conversion of listen to streams
Browse files Browse the repository at this point in the history
The socket isn't a stream, as we just use it to connect
and get a new fd.
  • Loading branch information
wingo committed May 3, 2018
1 parent 91560fa commit 38f1ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/program/config/listen/listen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ local function open_socket(file)
local sa = S.t.sockaddr_un(file)
assert(socket:bind(sa))
assert(socket:listen())
return file.fdopen(socket, 'rdwr')
return socket
end

local function validate_config(schema_name, revision_date, path, value_str)
Expand Down

0 comments on commit 38f1ad4

Please sign in to comment.