소스 검색

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

Vladimir Pyatnitskiy 1 년 전
부모
커밋
0fc399bbc3
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/debugger/godot3/server_controller.ts
  2. 1 1
      src/debugger/godot4/server_controller.ts

+ 1 - 1
src/debugger/godot3/server_controller.ts

@@ -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) => { });

+ 1 - 1
src/debugger/godot4/server_controller.ts

@@ -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) => { });