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

Fallback to non-cluster readdir if not in master process #5

Open
balupton opened this issue Oct 23, 2016 · 0 comments
Open

Fallback to non-cluster readdir if not in master process #5

balupton opened this issue Oct 23, 2016 · 0 comments

Comments

@balupton
Copy link
Member

Using node -e "require('readdir-cluster')(process.cwd(), console.log, console.log)" will fail as the node eval will mean readdir-cluster does not run in the master process, so cluster.setupMaster does not exist. In such circumstances, which we cannot control, we should fallback gracefully, either to spawn #3 or a normal readdir.

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

No branches or pull requests

1 participant