-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs.watch
failed with adding a UNIX Domain Sock file under macOS
#38014
Comments
It appears as if Apple macOS-specific APIs treats sock files differently. For instance, if I try to create a sock file using Python like this: python -c "import socket as s; sock = s.socket(s.AF_UNIX); sock.bind('/tmp/test.sock')" the |
Looks like I may have accidentally deleted my last comment here. Apple's
Only Apple's FSEvents will not notice UNIX Domain Sockets being created (but it will notice them being deleted), with How I see this problem could be partially solved:
|
To simplify things a bit, Speaking of this, I think this conversation needs to involve |
/cc @nodejs/libuv |
As soon as there is any further word on the issue, I may try to draft the PR solving the issue, as I've already had experience solving |
Exactly, I think it's a macOS-related bug. |
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
/tmp/temp.js
/tmp/tempp.js
What is the expected behavior?
temp.js
should have output, eitherfilename provided: ...
orfilename not provided
.What do you see instead?
Nothing outputed.
Additional information
If a UNIX Domain Sock file is removed, the event outputted. But
add
occurs no event.btw, Linux (Ubuntu) is OK.
The text was updated successfully, but these errors were encountered: