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

Fixing race condition between mkdir and event listener registration in pidfiles and logger plugins. #169

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

koudelka
Copy link

@koudelka koudelka commented Nov 4, 2011

Previously, if workers came online before mkdir callbacks fired, their corresponding worker-started callbacks would never run. (no pidfiles or no log files).

I've made the mkdir call synchronous, which shouldn't be a problem as it's called during startup.

@alexkwolfe
Copy link

I'm seeing this also. The net effect is that the pid files either don't exist or the pids are wrong. Either way, this bug breaks the cli functionality.

@jeffv
Copy link

jeffv commented Dec 20, 2011

I wouldn't be surprised if it were becoming defunct given the latest API.
http://nodejs.org/docs/latest/api/cluster.html

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

4 participants