Saturday 29 June 2019

Can a stream piped into process.stdout() destroy it? Is there a way to restart process.stdout?

I'm starting a child process and piping his output into process.stdout, and somehow sometimes the console goes silent and not even console.log() works, so my guess is that stdout is being destroyed.After a lot of troubleshooting with the limited data I have, I arrived at the conclusion that the stream termination seems to happen when the child process spits "™".Setting the end parameter to false did not help:this.fxChild.stdout.pipe(process.stdout, {end: false}); Do you guys have any ideas on how to prevent the stream termination without having to modify the data?

Submitted June 29, 2019 at 11:42PM by tabarra

No comments:

Post a Comment