From 82ad13c402d5acf058529f87513ddaec0d15159d Mon Sep 17 00:00:00 2001 From: Abhishek Anand Date: Wed, 14 Feb 2024 13:43:20 +0530 Subject: [PATCH] exex to spawn for bolt --- dist/index.js | 2 +- src/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 82da449..04c1836 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4254,7 +4254,7 @@ async function run() { `BOLT_MODE=${mode} BOLT_ALLOW_HTTP=${ allow_http} BOLT_DEFAULT_POLICY=${default_policy} $HOME/.local/bin/mitmdump --mode transparent --showhost --set block_global=false -s /home/mitmproxyuser/intercept.py &` ]; // core.info(runBoltCommand) - const cp = spawn(boltCommand, boltArgs); + const cp = spawn(boltCommand, boltArgs, {detached: true}); cp.stdout.on('data', (data) => { core.info(`stdout: ${data}`); diff --git a/src/main.js b/src/main.js index 167510b..cad1730 100644 --- a/src/main.js +++ b/src/main.js @@ -68,7 +68,7 @@ async function run() { `BOLT_MODE=${mode} BOLT_ALLOW_HTTP=${ allow_http} BOLT_DEFAULT_POLICY=${default_policy} $HOME/.local/bin/mitmdump --mode transparent --showhost --set block_global=false -s /home/mitmproxyuser/intercept.py &` ]; // core.info(runBoltCommand) - const cp = spawn(boltCommand, boltArgs); + const cp = spawn(boltCommand, boltArgs, {detached: true}); cp.stdout.on('data', (data) => { core.info(`stdout: ${data}`);