Backend process to play nice

This commit is contained in:
Rick Falkvinge
2017-10-01 21:18:50 +02:00
parent f4803eb351
commit 73c1e66a00
+1
View File
@@ -166,6 +166,7 @@ namespace Swarmops.Utility.BotCode
Process process = Process.Start("bash",
"-c \"" + commandLine + "\"");
process.PriorityClass = ProcessPriorityClass.Idle; // play nice - this is a heavy op
process.WaitForExit();