fix(exec): processes now run detached

This commit is contained in:
2018-10-28 19:12:15 +01:00
parent e6ed457501
commit 39d457382f
4 changed files with 364 additions and 254 deletions

View File

@@ -50,7 +50,8 @@ export class Smartshell {
const spawnlogInstance = new ShellLog();
const execChildProcess = cp.spawn(commandToExecute, [], {
shell: true,
env: process.env
env: process.env,
detached: true
});
execChildProcess.stdout.on('data', data => {