Skip to content

Commit

Permalink
Mark "crack-host" as temporary when run
Browse files Browse the repository at this point in the history
  • Loading branch information
alainbryden committed Oct 17, 2024
1 parent 75ee47d commit abda4ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit abda4ab

Please sign in to comment.