Skip to content

Fix child_process.fork patch #3293

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

Merged
merged 1 commit into from
Dec 24, 2013
Merged

Conversation

marchaefner
Copy link
Collaborator

Fixes #2919 by simply leaving execPath alone. (Currently bin/coffee is called with node's execOptions.)

The coffee "binary" is now used as the module with the actual .coffee-module as its first argument. This also makes the patch work on Windows (the friendly OS where executability is determined by file extension and shebangs don't exist).

Also fixes .fork calls without an arguments array. (Currently options is set to [])

  * Preserve `options` when called without `args`
  * Don't use `coffee` script as `execPath` (Fixes jashkenas#2919)
jashkenas added a commit that referenced this pull request Dec 24, 2013
Fix `child_process.fork` patch
@jashkenas jashkenas merged commit 35f1854 into jashkenas:master Dec 24, 2013
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.

--nodejs option didn't work with cluster module
2 participants