Skip to content
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

Fixes race condition with watchDir #237

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexgorbatchev
Copy link
Collaborator

I have a script that is actively deleting some of the directories being watched, this was causing gaze to fall over with ENOENT exception.

This PR addresses this issue.

@alexgorbatchev
Copy link
Collaborator Author

@shama any thoughts on this?

@shama
Copy link
Owner

shama commented Mar 25, 2017

I don't think this fixes an issue. Calling watch on a non-existent file should cause it to throw and there is a try catch there. So the ENOENT is probably caused by something else.

@alexgorbatchev
Copy link
Collaborator Author

This was the fix that prevented gaze from crashing in my scenario. Basically, files were being built and placed in the watched folder. Before the build, whole build folder would be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants