mirror of
https://github.com/cdr/code-server.git
synced 2025-12-07 00:44:31 +01:00
Fix forking in binary
This commit is contained in:
parent
d9fc29fb0b
commit
75c8bd62f1
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ export const forkModule = (modulePath: string, args: string[], options: cp.ForkO
|
||||||
stdio: [null, null, null, "ipc"],
|
stdio: [null, null, null, "ipc"],
|
||||||
};
|
};
|
||||||
if (isCli) {
|
if (isCli) {
|
||||||
proc = cp.spawn(process.execPath, forkArgs, options);
|
proc = cp.spawn(process.execPath, forkArgs, forkOptions);
|
||||||
} else {
|
} else {
|
||||||
proc = cp.spawn(process.execPath, ["--require", "ts-node/register", "--require", "tsconfig-paths/register", process.argv[1], ...forkArgs], forkOptions);
|
proc = cp.spawn(process.execPath, ["--require", "ts-node/register", "--require", "tsconfig-paths/register", process.argv[1], ...forkArgs], forkOptions);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue