Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Constant restarts - mtime not correct #45
I'm experiencing that node-dev is restarting constantly - like every second. I tried to debug it a bit, and found that the error is due to the function watchFile(file, onChange)
When using fs.watchFile, the returned objects are "curr" and "prev". However, curr.mtime is not set:
The curr object:
The prev object:
I'm aware this is not a direct bug in node-dev, but maybe you are aware of the problem?
I'm running Ubuntu as guest on a Macbook Pro. The files are located in OSX in a shared folder.
As a quick fixed i've changed the script from checking on mtime to atime.