From abda4ab65d46a1ee5f15a9cc0d6d183640b07aa4 Mon Sep 17 00:00:00 2001 From: Alain Bryden <2285037+alainbryden@users.noreply.github.com> Date: Thu, 17 Oct 2024 01:40:55 -0300 Subject: [PATCH] Mark "crack-host" as temporary when run --- daemon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.js b/daemon.js index 4ecebf89..5e769a57 100644 --- a/daemon.js +++ b/daemon.js @@ -582,7 +582,7 @@ async function exec(ns, script, hostname = null, numThreadsOrOptions = null, ... * Execute an external script that roots a server, and wait for it to complete. **/ async function doRoot(ns, server) { if (verbose) log(ns, `Rooting Server ${server.name}`); - const pid = await exec(ns, getFilePath('/Tasks/crack-host.js'), daemonHost, 1, server.name); + const pid = await exec(ns, getFilePath('/Tasks/crack-host.js'), daemonHost, { temporary: true }, server.name); await waitForProcessToComplete_Custom(ns, getHomeProcIsAlive(ns), pid); server.resetCaches(); // If rooted status was cached, we must now reset it }