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

fix(core): chokidar watcher on mac could segfault after reloading config #866

Merged
merged 1 commit into from
Jun 23, 2019

Conversation

edvald
Copy link
Collaborator

@edvald edvald commented Jun 21, 2019

Turns out chokidar and the native fsevents module don't like it when multiple
instances are created in a single process, even if one is closed before the
other starts. Fixed it by making a global instance and reconfiguring on
reload instead. See fsevents/fsevents#273 for
a discussion on this issue.

@edvald edvald requested a review from thsig June 21, 2019 13:36
@edvald
Copy link
Collaborator Author

edvald commented Jun 21, 2019

Tests are hanging now after they run, because the watcher keeps running. Need to work out how to fix that.

@edvald edvald force-pushed the fix-watch-segfault branch from 71559ca to c938073 Compare June 21, 2019 15:39
Copy link
Collaborator

@thsig thsig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

…figs

Turns out chokidar and the native fsevents module don't like it when multiple
instances are created in a single process, even if one is closed before the
other starts. Fixed it by making a global instance and reconfiguring on
reload instead. See fsevents/fsevents#273 for
a discussion on this issue.
@edvald edvald force-pushed the fix-watch-segfault branch from c938073 to b950823 Compare June 23, 2019 21:20
@edvald edvald merged commit 0502520 into master Jun 23, 2019
@edvald edvald deleted the fix-watch-segfault branch June 23, 2019 21:28
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.

2 participants