You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
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...
The text was updated successfully, but these errors were encountered:
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...
The text was updated successfully, but these errors were encountered: