unix socket needs to be marked as listening

This commit is contained in:
Christian Ulrich 2020-07-13 00:16:10 +02:00
parent 07716a3709
commit c6d4fadd6e
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ proc main() =
removeFile("/tmp/punchd.socket")
let unixSocket = newAsyncSocket(AF_UNIX, SOCK_STREAM, IPPROTO_IP)
unixSocket.bindUnix("/tmp/punchd.socket")
unixSocket.listen()
asyncCheck handleUsers(unixSocket)
runForever()