-
Notifications
You must be signed in to change notification settings - Fork 7.3k
persistent option ignored by fs.watch #2293
Comments
Confirmed. |
What is? |
Sorry. I didn't notice the persistent false somehow. |
I have this error as well on my Mac. It doesn't respond to a change. |
Could someone please change the issue title to something more specific, like "persistent option ignored by fs.watch under OS X"? |
Updated. It's not specific to OS X, by the way. |
This bug is a manifestation of a design flaw in the UNIX part of libuv. It's quite fixable, we just need to decide on the best approach. The event loop maintains a reference count of active handles. Setting |
Creating a file event watcher with fs.watch({persistent:false}) should not block the event loop.
Fixed in joyent/libuv@38fc6ad. The libuv that's bundled with node has been upgraded in 41f2725, a regression test has been added in 884f689. |
fs.watch seem to be broken on mac.
This script (named
j.js
) does not exit.P.S.
fs.watchFile
is working.The text was updated successfully, but these errors were encountered: