From df9fdc3e7cfc4c62550f8ee5464a70b13fd1ce76 Mon Sep 17 00:00:00 2001 From: Stepan Mikhailiuk Date: Tue, 4 Jun 2024 15:15:48 -0700 Subject: [PATCH] fix(run): spawned process inherits stdout and is not detached (#176) * Pipe logs to stdout * Disable detached and allow process to kill nwjs Fixes: #175 --- src/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/run.js b/src/run.js index 2f202ad..27c519b 100644 --- a/src/run.js +++ b/src/run.js @@ -51,7 +51,7 @@ async function run({ const nwProcess = child_process.spawn( path.resolve(nwDir, util.EXE_NAME[platform]), [srcDir, ...args], - { detached: true, stdio: "ignore" }, + { stdio: "inherit" }, ); nwProcess.on("close", () => {