cqueues icon indicating copy to clipboard operation
cqueues copied to clipboard

notify.get: Operation not supported on socket

Open aleclarson opened this issue 7 years ago • 2 comments

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

aleclarson avatar Apr 18 '18 18:04 aleclarson

Technically, when getting that error, I can assume the socket is created. But I'm also watching it for MODIFY events.

aleclarson avatar Apr 18 '18 18:04 aleclarson

Do you have a full sample of what you're trying to do?

daurnimator avatar Apr 20 '18 05:04 daurnimator