unix socket needs to be marked as listening
This commit is contained in:
parent
07716a3709
commit
c6d4fadd6e
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue