-
Notifications
You must be signed in to change notification settings - Fork 733
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
Use new child_process.execSync instead of busywaiting #189
Conversation
// CPU usage, though apparently not so much on Windows) | ||
while (!fs.existsSync(codeFile)) { updateStdout(); fs.writeFileSync(sleepFile, 'a'); } | ||
while (!fs.existsSync(stdoutFile)) { updateStdout(); fs.writeFileSync(sleepFile, 'a'); } | ||
if (typeof child.execSync === 'function') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lulz beat me to it :)
/cc @Schoonology for another look |
LGTM, pending @Schoonology's comments (or not if he's too busy :)) |
(Probably goes without saying, but squash it, then...) |
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "shelljs", | |||
"version": "0.3.0", | |||
"version": "0.3.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, I do remember you telling me why you chose a patch bump- why was it again? (I'm inclined to go with minor since there's so much at stake 😆)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I think you're right, we should go with minor. I was originally thinking patch since relatively few people are using node 0.12 or iojs, but minor makes more sense in a semver-ish kinda way. Will update this.
Use new child_process.execSync instead of busywaiting
boom |
bumped version here 72e34fa |
So as to keep CPUs happy.
relevant XKCD on why this may be a bad idea