Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Bug(?) in process.stdin.pipe in node 0.12.0 #9190

Closed
remy opened this issue Feb 11, 2015 · 0 comments
Closed

Bug(?) in process.stdin.pipe in node 0.12.0 #9190

remy opened this issue Feb 11, 2015 · 0 comments

Comments

@remy
Copy link

remy commented Feb 11, 2015

Related gist with files: https://gist.github.com/remy/fd1e75688390fd0d13ad

Run the spawn.js under node 0.10.x and when the child exit... output is shown, type something (i.e. to feed stdin) and it should be echoed out (I typed rs):

» node spawn.js
child exit - but stdin should still work...
rs
captured rs

When I run with node 0.12.0, the process just exits as soon as anything enters stdin (which is unexpected behaviour):

» node spawn.js
child exit - but stdin should still work...
rs
» 

I think it has to do with the child having exit, but I've tried to unpipe in the exit event, but that makes no difference, and I can't work out how to keep listening to the stdin stream after the child has died...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants