From 06721685416fb54cb9af3a88e9400dc3806561d9 Mon Sep 17 00:00:00 2001 From: Tobias Hopp Date: Thu, 28 Mar 2024 01:57:29 +0100 Subject: [PATCH] Fix prompt with sudo --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 0c68c3b..cada1ad 100644 --- a/index.js +++ b/index.js @@ -74,7 +74,7 @@ function initTools(callback) { function scanNetworks(callback, useSudo) { const cmd = scanner.cmdLine.split(" "); const args = cmd.slice(1); - const child = spawn(cmd[0], args, { stdio: ['ignore', 'pipe', 'pipe'] }); + const child = spawn(cmd[0], args, { stdio: ['ignore', 'pipe', 'pipe'], detached: true }); child.on("error", (err) => callback(err, null) );