From ab69fc7ab38df38c901e246e5f244286ceec0e17 Mon Sep 17 00:00:00 2001 From: Tian Jian Date: Sat, 2 Oct 2021 08:16:15 +0800 Subject: [PATCH] Fix: use pipe to spawn http server process to enable logs pipe to files Previously we use `inherit` in stdio param to spawn the http server process(or the child process), which will swallow the logs in child process and not be written to the `code-server-stdout.log`. Using `pipe` will fix this problem. --- src/node/wrapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/wrapper.ts b/src/node/wrapper.ts index 8e8d9ccabab2..c645fe83557d 100644 --- a/src/node/wrapper.ts +++ b/src/node/wrapper.ts @@ -314,7 +314,7 @@ export class ParentProcess extends Process { CODE_SERVER_PARENT_PID: process.pid.toString(), NODE_OPTIONS: `--max-old-space-size=2048 ${process.env.NODE_OPTIONS || ""}`, }, - stdio: ["inherit", "inherit", "inherit", "ipc"], + stdio: ["pipe", "pipe", "pipe", "ipc"], }) }