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

Use new child_process.execSync instead of busywaiting #189

Merged
merged 1 commit into from
Mar 17, 2015

Conversation

summer4096
Copy link
Contributor

// 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') {
Copy link
Collaborator

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 :)

@arturadib
Copy link
Collaborator

/cc @Schoonology for another look

@arturadib
Copy link
Collaborator

LGTM, pending @Schoonology's comments (or not if he's too busy :))

@Schoonology
Copy link
Contributor

(Probably goes without saying, but squash it, then...) :shipit:

@@ -1,6 +1,6 @@
{
"name": "shelljs",
"version": "0.3.0",
"version": "0.3.1",
Copy link
Collaborator

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 😆)

Copy link
Contributor Author

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.

arturadib added a commit that referenced this pull request Mar 17, 2015
Use new child_process.execSync instead of busywaiting
@arturadib arturadib merged commit 2b94135 into shelljs:master Mar 17, 2015
@arturadib
Copy link
Collaborator

boom

@arturadib
Copy link
Collaborator

bumped version here 72e34fa

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.

3 participants