CP auto restart fix

This commit is contained in:
Shruti Padamata
2025-09-19 15:30:06 -07:00
parent 7dade1f0e2
commit b7ece4ee3a

View File

@@ -132,10 +132,10 @@ async function relaunchAppInChildProcess(additionalArgs: string[]) {
// The parent process should not be reading from stdin while the child is running.
process.stdin.pause();
const child = spawn(process.execPath, nodeArgs, {
stdio: 'inherit',
env: newEnv,
});
const child = spawn(process.execPath, nodeArgs, {
stdio: 'inherit',
env: newEnv,
});
return new Promise<number>((resolve, reject) => {
child.on('error', reject);