cqueues
cqueues copied to clipboard
notify.get: Operation not supported on socket
I want to know when a socket is created at a specific file path.
I tried using cqueues.notify but got this:
lua: .luarocks/share/lua/5.1/cqueues/notify.lua:9: notify.get: Operation not supported on socket
stack traceback:
[C]: in function 'error'
.luarocks/share/lua/5.1/cqueues/auxlib.lua:46: in function <.luarocks/share/lua/5.1/cqueues/auxlib.lua:42>
(tail call): ?
test.lua:19: in main chunk
[C]: ?
Operating system: macOS Lua version: 5.1
Technically, when getting that error, I can assume the socket is created. But I'm also watching it for MODIFY events.
Do you have a full sample of what you're trying to do?