Fix debugged process not being terminated when debugging session closes on Linux (#620)

This commit is contained in:
Vladimir Pyatnitskiy
2024-04-17 21:05:32 +04:00
committed by GitHub
parent 56a7871d06
commit 0fc399bbc3
2 changed files with 2 additions and 2 deletions

View File

@@ -221,7 +221,7 @@ export class ServerController {
}
log.info(`Launching game process using command: '${command}'`);
const debugProcess = subProcess("debug", command, { shell: true });
const debugProcess = subProcess("debug", command, { shell: true, detached: true });
debugProcess.stdout.on("data", (data) => { });
debugProcess.stderr.on("data", (data) => { });

View File

@@ -227,7 +227,7 @@ export class ServerController {
}
log.info(`Launching game process using command: '${command}'`);
const debugProcess = subProcess("debug", command, { shell: true });
const debugProcess = subProcess("debug", command, { shell: true, detached: true });
debugProcess.stdout.on("data", (data) => { });
debugProcess.stderr.on("data", (data) => { });