-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[refactor api] Start using native fork
Get rid of `node-fork`. So far this only works on `node v0.7.x` due to usage of `silent` option in `child_process.fork` options. This also adds a `fork-shim`, which allows us to spawn arbitrary commands using `child_process.fork`.
- Loading branch information
Showing
2 changed files
with
12 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env node | ||
var spawn = require('child_process').spawn; | ||
spawn(process.argv[2], process.argv.slice(3), { | ||
customFds: [0, 1, 2] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters