1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-28 21:25:25 +00:00

Fix forking in binary

This commit is contained in:
Asher 2019-02-22 17:36:55 -06:00
parent d9fc29fb0b
commit 75c8bd62f1
No known key found for this signature in database
GPG Key ID: 7BB4BA9C783D2BBC

View File

@ -141,7 +141,7 @@ export const forkModule = (modulePath: string, args: string[], options: cp.ForkO
stdio: [null, null, null, "ipc"],
};
if (isCli) {
proc = cp.spawn(process.execPath, forkArgs, options);
proc = cp.spawn(process.execPath, forkArgs, forkOptions);
} else {
proc = cp.spawn(process.execPath, ["--require", "ts-node/register", "--require", "tsconfig-paths/register", process.argv[1], ...forkArgs], forkOptions);
}