hopefully pipe parent process stdin to child process

This commit is contained in:
hippoz 2022-03-12 14:09:04 +02:00
parent b24a2dbae9
commit 30db5003fb
Signed by: hippoz
GPG key ID: 7C52899193467641

View file

@ -239,6 +239,8 @@ class Bridge {
this.process = createServerChildProcess(); this.process = createServerChildProcess();
this.process.stdin.pipe(process.stdin);
this.process.stderr.on("data", async (rawDataBuffer) => { this.process.stderr.on("data", async (rawDataBuffer) => {
const stringData = rawDataBuffer.toString().trim(); const stringData = rawDataBuffer.toString().trim();
console.error(`[server process stderr]: ${stringData}`); console.error(`[server process stderr]: ${stringData}`);