Skip to content

Commit

Permalink
fix(run): spawned process inherits stdout and is not detached (#176)
Browse files Browse the repository at this point in the history
* Pipe logs to stdout
* Disable detached and allow process to kill nwjs

Fixes: #175
  • Loading branch information
stepancar authored Jun 4, 2024
1 parent 0df04c1 commit df9fdc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit df9fdc3

Please sign in to comment.