Skip to content

Commit

Permalink
fix: rs in node@11 (#1493)
Browse files Browse the repository at this point in the history
Fixes node 11's `rs` support. Somehow required that the `process.stdin` to be disconnected from the child before the stream is resumed (whereas previously it seemed that it would automatically happen…possibly a node 11 bug).

Fixes #1493
  • Loading branch information
remy authored Dec 14, 2018
1 parent 3dfd5cc commit dd0b96a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ cache:
notifications:
email: false
node_js:
- '9'
- '11'
- '10'
- '8'
- '6'
- '4'
Expand Down
4 changes: 4 additions & 0 deletions lib/monitor/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ function run(options) {
});

child.on('exit', function (code, signal) {
if (child && child.stdin) {
process.stdin.unpipe(child.stdin);
}

if (code === 127) {
utils.log.error('failed to start process, "' + cmd.executable +
'" exec not found');
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"debug": "^3.1.0",
"ignore-by-default": "^1.0.1",
"minimatch": "^3.0.4",
"pstree.remy": "^1.1.3",
"pstree.remy": "^1.1.6",
"semver": "^5.5.0",
"supports-color": "^5.2.0",
"touch": "^3.1.0",
Expand Down

0 comments on commit dd0b96a

Please sign in to comment.